]> git.ipfire.org Git - nitsi.git/commitdiff
Improve logging of disk handling
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sat, 9 Jun 2018 12:14:28 +0000 (14:14 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sat, 9 Jun 2018 12:14:28 +0000 (14:14 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/nitsi/disk.py

index 29782574282ef39779c5b28c039fe78d5b52ea7e..cec6a32d253b9653d5b23ce56373df8fbeeb8a80 100755 (executable)
@@ -17,13 +17,13 @@ class disk():
         self.con.add_drive_opts(disk, format="qcow2")
 
     def mount(self, uuid, path):
-        self.log.debug("Trying to mount the partion with uuid: {} under {}".format(uuid, path))
+        self.log.info("Trying to mount the partion with uuid: {} under {}".format(uuid, path))
         self.con.launch()
         part = self.con.findfs_uuid(uuid)
         self.con.mount(part, path)
 
     def copy_in(self, fr, to):
-        self.log.debug("Going to copy some files into the image.")
+        self.log.info("Going to copy some files into the image.")
         tmp = tempfile.mkstemp()
         tmp = tmp[1] + ".tar"
         with tarfile.open(tmp, "w") as tar:
@@ -31,15 +31,15 @@ class disk():
                 self.log.debug("Adding {} to be copied into the image".format(file))
                 tar.add(file, arcname=os.path.basename(file))
 
-        self.log.debug("Going to copy the files into the image")
+        self.log.info("Going to copy the files into the image")
         self.con.tar_in_opts(tmp, to)
 
     def umount(self, path):
-        self.log.debug("Unmounting the image")
+        self.log.info("Unmounting the image")
         self.con.umount_opts(path)
 
     def close(self):
-        self.log.debug("Flush the image and closing the connection")
+        self.log.info("Flush the image and closing the connection")
         self.con.shutdown()
         self.con.close()