]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
daemon: Log the received Pakfire configuration
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 Oct 2022 10:49:12 +0000 (10:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 Oct 2022 10:49:12 +0000 (10:49 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/daemon.py

index 5690257af5dfcecde69acede99c67a605138cfab..ba26a73c7707b6e5ea6e1813c0d8fcebe84c97c8 100644 (file)
@@ -19,6 +19,9 @@ from . import logger
 from pakfire.constants import *
 from pakfire.i18n import _
 
+# Setup logging
+log = logging.getLogger("pakfire.daemon")
+
 class Daemon(object):
        def __init__(self, config_file="daemon.conf", debug=False, verbose=False):
                self.config  = config.Config(config_file)
@@ -315,6 +318,9 @@ class Worker(multiprocessing.Process):
                """
                conf = self.data.get("conf")
 
+               # Dump pakfire configuration
+               log.debug("Pakfire configuration:\n%s" % conf)
+
                # Write the configuration to file
                f = tempfile.NamedTemporaryFile(delete=False)
                if conf: