diff --git a/ClusterController/Util.py b/ClusterController/Util.py index 7907edd..8ae86a7 100644 --- a/ClusterController/Util.py +++ b/ClusterController/Util.py @@ -15,6 +15,11 @@ def executeProgram( astrArguments ): (returnCode, stdout, stderr) = Lib.Util.executeProgram( astrArguments ) if bBUG_00000008_IS_STILL_ACTIVE: logDebug('executeCommand : return code of [%s] = %d' % (','.join(astrArguments), returnCode)) + # for debugging purpose, log info in case the command failed + if returnCode != 0: + logDebug('executeCommand : return code of [%s] = %d' % (','.join(astrArguments), returnCode)) + logDebug('executeCommand : stdout of [%s] = %s' % (','.join(astrArguments), stdout)) + logDebug('executeCommand : stderr of [%s] = %s' % (','.join(astrArguments), stderr)) return (returnCode, stdout, stderr) def executeCommand( command ):