From ef09dd6fec65c4e6adbdd81ee9da455a46d5917c Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 5 Sep 2012 15:05:39 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20266=20-=20clustercontroller=20s'est=20pla?= =?UTF-8?q?nt=C3=A9=20=C3=A0=20cause=20d'un=20appel=20=C3=A0=20qstat=20?= =?UTF-8?q?=C3=A9chou=C3=A9=20:=20ajout=20d'informations=20qui=20permettro?= =?UTF-8?q?nt=20de=20cerner=20le=20probl=C3=A8me=20exact=20si=20=C3=A7a=20?= =?UTF-8?q?se=20reproduit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ClusterController/Util.py | 5 +++++ 1 file changed, 5 insertions(+) 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 ):