Yaniv Bronhaim has posted comments on this change.

Change subject: core: Fixes logging in SshSoftFencingCommand
......................................................................


Patch Set 3: (1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SshSoftFencingCommand.java
Line 74:             sshClient.useDefaultKeyPair();
Line 75:             sshClient.connect();
Line 76:             sshClient.authenticate();
Line 77:             cmdOut = new ByteArrayOutputStream();
Line 78:             cmdErr = new ByteArrayOutputStream();
Because that way you can see if the error was raised because the ssh connection 
or the command raised it, and instead of writing just failed you'll be able to 
say - failed because authentication error, or failed because the command 
couldn't execute. be more specific is better practice.

anyhow, logCommandOutput is totally redundant
Line 79:             sshClient.executeCommand(Config.<String> 
GetValue(ConfigValues.SshSoftFencingCommand, version),
Line 80:                     null,
Line 81:                     cmdOut,
Line 82:                     cmdErr);


-- 
To view, visit http://gerrit.ovirt.org/16619
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I6ea12003bd44f6500e3878176e98debd102da056
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <mper...@redhat.com>
Gerrit-Reviewer: Martin Peřina <mper...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybron...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to