From 51797cd6abcb58659fa2c9a2d2ecf24242c0a3aa Mon Sep 17 00:00:00 2001 From: Eduardo Robles Elvira Date: Fri, 7 Mar 2014 14:15:57 +0100 Subject: [PATCH] fix debug logging in diff mode --- deltatar/deltatar.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.1