summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-06-11 10:00:01 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-06-11 10:00:01 +0100
commit323ab665f415d7e27380f4e9f4845cdf2991d340 (patch)
tree3bf6037c4932f6f6007eda2379e3a25c73cdb87b /morph
parentbe0395f1b05aabb44d2495603e252728b8efd9fd (diff)
downloadmorph-323ab665f415d7e27380f4e9f4845cdf2991d340.tar.gz
Log environment of executed commands
This helps debugging mysterious build failures, sometimes.
Diffstat (limited to 'morph')
-rwxr-xr-xmorph4
1 files changed, 4 insertions, 0 deletions
diff --git a/morph b/morph
index c41610c6..75998daa 100755
--- a/morph
+++ b/morph
@@ -870,6 +870,10 @@ class Morph(cliapp.Application):
# print the command line
msg('# %s' % ' | '.join(commands))
+
+ # Log the environment.
+ for name in kwargs['env']:
+ logging.debug('environment: %s=%s' % (name, kwargs['env'][name]))
# run the command line
return cliapp.Application.runcmd(self, argv, *args, **kwargs)