[geany/infrastructure] f7c4d8: Log command's exit code
Enrico Tröger
git-noreply at xxxxx
Sun Apr 6 08:40:38 UTC 2014
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Sun, 06 Apr 2014 08:40:38 UTC
Commit: f7c4d83ee0b2c9e2146533118e9f4433119d9fdb
https://github.com/geany/infrastructure/commit/f7c4d83ee0b2c9e2146533118e9f4433119d9fdb
Log Message:
-----------
Log command's exit code
Modified Paths:
--------------
scripts/git_hooks/geany_commit_utils.py
Modified: scripts/git_hooks/geany_commit_utils.py
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -41,7 +41,8 @@ def run_command(repository_path, command, redirect_stdout=None, run_as=None, log
if stderr:
output = u'%s\nStderr:\n%s' % (output, stderr)
if logger:
- logger.debug(u'Command "%s": %s' % (' '.join(command), output))
+ exit_code = process.returncode
+ logger.debug(u'Command "%s" exited with code %s: %s' % (' '.join(command), exit_code, output))
#----------------------------------------------------------------------
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list