This eliminates unnecessary toString() calls, as logging implementation
will call it when necessary.
Change-Id: Ic3b45b9ae34c29951ed6eea94cae39c423b6ec26
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
9be412d7d6acf298a740e8325f1382422e32afa1)
super(sessionListener, channel, sessionId);
this.header = header;
this.sessionListener = sessionListener;
super(sessionListener, channel, sessionId);
this.header = header;
this.sessionListener = sessionListener;
- LOG.debug("Session {} created", toString());
+ LOG.debug("Session {} created", this);
}
protected void endOfInput() {
}
protected void endOfInput() {
- LOG.debug("Session {} end of input detected while session was in state {}", toString(), isUp() ? "up"
+ LOG.debug("Session {} end of input detected while session was in state {}", this, isUp() ? "up"
: "initialized");
if (isUp()) {
this.sessionListener.onSessionDown(thisInstance(),
: "initialized");
if (isUp()) {
this.sessionListener.onSessionDown(thisInstance(),
}
protected void sessionUp() {
}
protected void sessionUp() {
- LOG.debug("Session {} up", toString());
+ LOG.debug("Session {} up", this);
sessionListener.onSessionUp(thisInstance());
this.up = true;
}
sessionListener.onSessionUp(thisInstance());
this.up = true;
}
sshServerAddress,
(String) dictionaryConfig.get(SSH_PK_PATH_PROP));
sshServerAddress,
(String) dictionaryConfig.get(SSH_PK_PATH_PROP));
- LOG.debug("CSS netconf server configuration was updated: {}", dictionaryConfig.toString());
+ LOG.debug("CSS netconf server configuration was updated: {}", dictionaryConfig);
public String getPrivateKeyPath() {
return netconfConfiguration.getPrivateKeyPath();
}
public String getPrivateKeyPath() {
return netconfConfiguration.getPrivateKeyPath();
}
-}
\ No newline at end of file