Improve initialisation
[lgpl/argeo-commons.git] / org.argeo.cms.lib.sshd / src / org / argeo / cms / ssh / CmsSshServer.java
index 8a6def33ac631c2c88eaf8f8daa308c27394d4a4..98bb045441b51a306988f95346127998ba08e50c 100644 (file)
@@ -206,7 +206,10 @@ public class CmsSshServer implements CmsSshd {
                                        (PrivateKey) store.getKey(CmsConstants.NODE, keyStorePassword));
                } catch (IOException | KeyStoreException | NoSuchProviderException | NoSuchAlgorithmException
                                | CertificateException | IllegalArgumentException | UnrecoverableKeyException e) {
-                       log.error("Cannot add node public key to SSH authorized keys", e);
+                       if (log.isTraceEnabled())
+                               log.error("Cannot add node public key to SSH authorized keys", e);
+                       else
+                               log.error("Cannot add node public key to SSH authorized keys: " + e.getMessage());
                        return null;
                }