diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-06-11 10:00:01 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-06-11 10:00:01 +0100 |
commit | 323ab665f415d7e27380f4e9f4845cdf2991d340 (patch) | |
tree | 3bf6037c4932f6f6007eda2379e3a25c73cdb87b /morph | |
parent | be0395f1b05aabb44d2495603e252728b8efd9fd (diff) | |
download | morph-323ab665f415d7e27380f4e9f4845cdf2991d340.tar.gz |
Log environment of executed commands
This helps debugging mysterious build failures, sometimes.
Diffstat (limited to 'morph')
-rwxr-xr-x | morph | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |