summaryrefslogtreecommitdiff
path: root/morphlib/util.py
diff options
context:
space:
mode:
authorDaniel Firth <dan.firth@codethink.co.uk>2013-10-11 10:29:54 +0100
committerDaniel Firth <dan.firth@codethink.co.uk>2013-10-11 10:29:54 +0100
commitdbbee9a5f94569a330aa477bc5fc1bf3a1fd5d86 (patch)
tree42f21d88e3074214ea96f3600670fe3bfb871f09 /morphlib/util.py
parent090d21ed8e9cb7bd640c2632217399dc72e0df0a (diff)
parent31ca4d455d1bbce69c6dc461dbd506b3523ac2d9 (diff)
downloadmorph-dbbee9a5f94569a330aa477bc5fc1bf3a1fd5d86.tar.gz
Merge branch 'danielfirth/RT193'
Reviewed by: Lars Wirzenius Reviewed by: Pedro Alvarezwq
Diffstat (limited to 'morphlib/util.py')
-rw-r--r--morphlib/util.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/morphlib/util.py b/morphlib/util.py
index 19c0046f..8a2cfd71 100644
--- a/morphlib/util.py
+++ b/morphlib/util.py
@@ -171,20 +171,20 @@ def new_repo_caches(app): # pragma: no cover
return lrc, rrc
-def log_dict_diff(cur, pre): # pragma: no cover
+def log_dict_diff(app, cur, pre): # pragma: no cover
'''Log the differences between two dicts to debug log'''
dictA = cur
dictB = pre
for key in dictA.keys():
if key not in dictB:
- logging.debug("New environment: %s = %s" % (key, dictA[key]))
+ app.status(msg="New environment: %s = %s" % (key, dictA[key]))
elif dictA[key] != dictB[key]:
- logging.debug(
+ app.status(msg= \
"Environment changed: %(key)s = %(valA)s to %(key)s = %(valB)s"
% {"key": key, "valA": dictA[key], "valB": dictB[key]})
for key in dictB.keys():
if key not in dictA:
- logging.debug("Environment removed: %s = %s" % (key, dictB[key]))
+ app.status(msg="Environment removed: %s = %s" % (key, dictB[key]))
# This acquired from rdiff-backup which is GPLv2+ and a patch from 2011