aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-07-02 17:52:05 +0200
committerPapoteur <papoteur@mageia.org>2023-07-02 17:52:05 +0200
commit617d5e73b868c798d1a3c11acb9555336458a8cb (patch)
treeb14a4352f171d8b711b3216de44c79ad7dab761a
parent95c5107c100a47ead023e06fab49a346f65c91f6 (diff)
downloadisodumper-617d5e73b868c798d1a3c11acb9555336458a8cb.tar
isodumper-617d5e73b868c798d1a3c11acb9555336458a8cb.tar.gz
isodumper-617d5e73b868c798d1a3c11acb9555336458a8cb.tar.bz2
isodumper-617d5e73b868c798d1a3c11acb9555336458a8cb.tar.xz
isodumper-617d5e73b868c798d1a3c11acb9555336458a8cb.zip
Add more logging in magiback
-rwxr-xr-xbackend/magiback7
1 files changed, 5 insertions, 2 deletions
diff --git a/backend/magiback b/backend/magiback
index ed6109b..46cf43c 100755
--- a/backend/magiback
+++ b/backend/magiback
@@ -91,7 +91,7 @@ class Isodumper(raw_write.Dumper):
if check_permission('org.mageia.Magiback.Isodumper.write', dbus_context):
self.thread = threading.Thread(target=self._do_write, args=(source, target, size, self.backup_mode, self.uid, self.uid))
self.thread.start()
- logging.debug("Writing thread started")
+ logging.info("Writing thread started")
self.writing_perm = True
self.writing_target = target
else:
@@ -105,9 +105,10 @@ class Isodumper(raw_write.Dumper):
if self.writing_perm and self.writing_target == target:
self.thread = threading.Thread(target=self._do_persistence, args=(target, label, key))
self.thread.start()
- logging.debug("Persistence thread started")
+ logging.info("Persistence thread started")
else:
self.return_message = "Persistence: Access denied"
+ logging.info(self.return_message)
self.finished.set()
self.writing_perm = False
self.writing_target = ""
@@ -142,11 +143,13 @@ class Isodumper(raw_write.Dumper):
self.thread.start()
def set_backup_mode(self, uid, gid):
+ logging.info("Set in backup mode")
self.backup_mode = True
self.uid = uid
self.gid = gid
def unset_backup_mode(self):
+ logging.info("Unset the backup mode")
self.backup_mode = False
self.uid = 0
self.gid = 0