Refactor Argeo init
[lgpl/argeo-commons.git] / org.argeo.cms.lib.sshd / src / org / argeo / cms / ssh / CmsSshServer.java
index 8a6def33ac631c2c88eaf8f8daa308c27394d4a4..2480c3df450e1195fce6f7c672a2cc293ef94173 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.warn("Cannot add node public key to SSH authorized keys", e);
+                       else
+                               log.warn("Cannot add node public key to SSH authorized keys: " + e);
                        return null;
                }