]> git.ipfire.org Git - pakfire.git/commitdiff
Fix logging issue in transaction.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Nov 2011 13:35:03 +0000 (13:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Nov 2011 13:35:03 +0000 (13:35 +0000)
python/pakfire/transaction.py

index ec54b1c33b981b7f51d5baf01caa19c752e83408..afb5000b61a0e411f35f94a7a3c808b70168e4c4 100644 (file)
@@ -339,7 +339,10 @@ class Transaction(object):
                s.append("")
                return s
 
-       def dump(self, logger=log):
+       def dump(self, logger=None):
+               if logger is None:
+                       logger = log
+
                width = 80
                line = "=" * width