Refactor Argeo init
[lgpl/argeo-commons.git] / org.argeo.cms.lib.sshd / src / org / argeo / cms / ssh / CmsSshServer.java
index 98bb045441b51a306988f95346127998ba08e50c..2480c3df450e1195fce6f7c672a2cc293ef94173 100644 (file)
@@ -207,9 +207,9 @@ public class CmsSshServer implements CmsSshd {
                } catch (IOException | KeyStoreException | NoSuchProviderException | NoSuchAlgorithmException
                                | CertificateException | IllegalArgumentException | UnrecoverableKeyException e) {
                        if (log.isTraceEnabled())
-                               log.error("Cannot add node public key to SSH authorized keys", e);
+                               log.warn("Cannot add node public key to SSH authorized keys", e);
                        else
-                               log.error("Cannot add node public key to SSH authorized keys: " + e.getMessage());
+                               log.warn("Cannot add node public key to SSH authorized keys: " + e);
                        return null;
                }