From: Eduardo Robles Elvira Date: Fri, 7 Mar 2014 13:15:57 +0000 (+0100) Subject: fix debug logging in diff mode X-Git-Tag: v2.2~63 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=51797cd6abcb58659fa2c9a2d2ecf24242c0a3aa;p=python-delta-tar fix debug logging in diff mode --- diff --git a/deltatar/deltatar.py b/deltatar/deltatar.py index 9344434..309427a 100644 --- a/deltatar/deltatar.py +++ b/deltatar/deltatar.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright (C) 2013 Intra2net AG +# Copyright (C) 2013, 2014 Intra2net AG # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published @@ -856,8 +856,8 @@ class DeltaTar(object): s = bytes(json.dumps(stat) + '\n', 'UTF-8') crc = binascii.crc32(s, crc) & 0xffffffff index_fd.write(s) + self.logger.debug("backup %s" % stat['path']) - self.logger.debug("backup %s" % stat['path']) s = bytes('{"type": "END-FILE-LIST"}\n', 'UTF-8') crc = binascii.crc32(s, crc) & 0xffffffff index_fd.write(s)