diff options
author | Chris Johns <chrisj@rtems.org> | 2013-04-21 18:37:02 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-04-21 18:37:02 +1000 |
commit | 5142becd8ec950ea0f2d36cdc9488660abc2ca29 (patch) | |
tree | cbe93e6ede010f4e716fcd21fd123a4247b0c917 /source-builder/sb/git.py | |
parent | Add source and patches section. (diff) | |
download | rtems-source-builder-5142becd8ec950ea0f2d36cdc9488660abc2ca29.tar.bz2 |
Refactor the logging support.
Diffstat (limited to '')
-rw-r--r-- | source-builder/sb/git.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source-builder/sb/git.py b/source-builder/sb/git.py index f9d48f8..e503beb 100644 --- a/source-builder/sb/git.py +++ b/source-builder/sb/git.py @@ -25,6 +25,7 @@ import os import error import execute +import log import options import path @@ -41,7 +42,10 @@ class repo: cwd = self.path else: cwd = None - exit_code, proc, output = e.spawn([self.git] + args, cwd = cwd) + cmd = [self.git] + args + log.trace('cmd: (%s) %s' % (str(cwd), ' '.join(cmd))) + exit_code, proc, output = e.spawn(cmd, cwd = cwd) + log.trace(output) if check: self._git_exit_code(exit_code) return exit_code, output |