You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dd...@apache.org on 2011/12/31 19:40:57 UTC

svn commit: r1226168 - /incubator/ambari/trunk/agent/src/main/python/ambari_agent/shell.py

Author: ddas
Date: Sat Dec 31 18:40:57 2011
New Revision: 1226168

URL: http://svn.apache.org/viewvc?rev=1226168&view=rev
Log:
AMBARI-180. Added a debug log.

Modified:
    incubator/ambari/trunk/agent/src/main/python/ambari_agent/shell.py

Modified: incubator/ambari/trunk/agent/src/main/python/ambari_agent/shell.py
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/agent/src/main/python/ambari_agent/shell.py?rev=1226168&r1=1226167&r2=1226168&view=diff
==============================================================================
--- incubator/ambari/trunk/agent/src/main/python/ambari_agent/shell.py (original)
+++ incubator/ambari/trunk/agent/src/main/python/ambari_agent/shell.py Sat Dec 31 18:40:57 2011
@@ -91,6 +91,7 @@ class shellRunner:
     p = subprocess.Popen(cmd, preexec_fn=changeUid, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, close_fds=True)
     out, err = p.communicate()
     code = p.wait()
+    logger.debug("Exitcode for %s is %d" % (cmd,code))
     return {'exitCode': code, 'output': out, 'error': err}
 
   # dispatch action types