Log db error

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2018-10-15 19:12:54 +02:00
parent bac5839dd0
commit 09ca7d887c
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 2 additions and 1 deletions

View File

@ -202,8 +202,9 @@
(encrypted-realm-version file-name new-key)
(log/info "try to encrypt with password success")
(on-success))
(catch :default _
(catch :default e
(do
(log/warn "failed checking db encryption with" e)
(log/info "try to encrypt with old key")
(encrypted-realm-version file-name old-key)
(log/info "try to encrypt with old key success")