Commit e9d2666a authored by Marco Mariani's avatar Marco Mariani

CLI: avoid empty log message (no envvar removed)

parent b213bc69
......@@ -132,7 +132,8 @@ def getCleanEnvironment(logger, home_path='/tmp'):
changed_env['HOME'] = env['HOME'] = home_path
for k in sorted(changed_env.iterkeys()):
logger.debug('Overridden %s = %r' % (k, changed_env[k]))
logger.debug('Removed from environment: %s' % ', '.join(sorted(removed_env)))
if removed_env:
logger.debug('Removed from environment: %s' % ', '.join(sorted(removed_env)))
return env
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment