]> git.ipfire.org Git - oddments/collecty.git/blobdiff - src/collecty/daemon.py
Improve logging by using the native journal module
[oddments/collecty.git] / src / collecty / daemon.py
index 00a4431f893158b4da6e59cfe018ddaa962e3036..8f310213b15d90946a7b15ac4b0cfdf5ec781b6f 100644 (file)
@@ -34,6 +34,10 @@ class Collecty(object):
        SUBMIT_INTERVAL = 300
 
        def __init__(self, debug=False):
+               # Enable debug logging when running in debug mode
+               if debug:
+                       log.setLevel(logging.DEBUG)
+
                self.data_sources = []
 
                # Indicates whether this process should be running or not.