From 4961066e3366990fb972a317c454d5c2cfe2f8b6 Mon Sep 17 00:00:00 2001 From: JimmyShi22 <417711026@qq.com> Date: Mon, 3 Jun 2019 15:41:57 +0800 Subject: [PATCH] Print encrypted file exception info --- libsecurity/EncryptedFile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsecurity/EncryptedFile.cpp b/libsecurity/EncryptedFile.cpp index 059631010d..12ca1bdbc2 100644 --- a/libsecurity/EncryptedFile.cpp +++ b/libsecurity/EncryptedFile.cpp @@ -58,6 +58,8 @@ bytes EncryptedFile::decryptContents( } catch (exception& e) { + LOG(ERROR) << LOG_DESC("[ENCFILE] EncryptedFile error") + << LOG_KV("what", boost::diagnostic_information(e)); BOOST_THROW_EXCEPTION(EncryptedFileError()); } LOG(DEBUG) << "[ENCFILE] Decrypt file [name/cipher/plain]: " << _filePath << "/"