fix debug logging in diff mode
authorEduardo Robles Elvira <edulix@wadobo.com>
Fri, 7 Mar 2014 13:15:57 +0000 (14:15 +0100)
committerEduardo Robles Elvira <edulix@wadobo.com>
Fri, 7 Mar 2014 13:15:57 +0000 (14:15 +0100)
deltatar/deltatar.py

index 9344434..309427a 100644 (file)
@@ -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)