fix error found by pylint
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 22 Jun 2016 15:14:15 +0000 (17:14 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 23 Jun 2016 11:42:46 +0000 (13:42 +0200)
deltatar/deltatar.py

index cc23a58..aa59cd6 100644 (file)
@@ -752,7 +752,7 @@ class DeltaTar(object):
             if not os.path.isabs(volume_path):
                 volume_path = os.path.join(cwd, volume_path)
 
-            self.logger.debug("opening volume %s" % volume_path)
+            deltarobj.logger.debug("opening volume %s" % volume_path)
             tarobj.open_volume(volume_path)
 
         # wraps some args from context into the handler
@@ -1297,7 +1297,7 @@ class DeltaTar(object):
                     helper.restore(ipath, l_no, restore_callback)
                 except Exception as e:
                     self.logger.error("FAILED to restore: {} ({})"
-                                      .format(path.get('path', ''), e))
+                                      .format(ipath.get('path', ''), e))
                 continue
 
             # if both files are equal, we have nothing to restore