浏览代码

Print error message instead of stacktrace
Fixes #1345

Ralph Plawetzki 4 年之前
父节点
当前提交
ae957c2588

+ 2 - 2
main/keychain/src/main/java/org/cryptomator/keychain/LinuxKDEWalletKeychainAccessImpl.java

@@ -22,7 +22,7 @@ public class LinuxKDEWalletKeychainAccessImpl implements KeychainAccessStrategy
         try {
             connection = DBusConnection.getConnection(DBusConnection.DBusBusType.SESSION);
         } catch (DBusException e) {
-            e.printStackTrace();
+            log.error(e.toString(), e.getCause());
         }
     }
 
@@ -32,7 +32,7 @@ public class LinuxKDEWalletKeychainAccessImpl implements KeychainAccessStrategy
             wallet = new KDEWallet(connection);
             return wallet.isEnabled();
         } catch (Exception e) {
-            e.printStackTrace();
+            log.error(e.toString(), e.getCause());
             return false;
         }
     }