config.py

changeset 31
b4b4bb7a2ec5
parent 30
3dd525652dc8
child 33
91421eeb4426
--- a/config.py	Sun Jan 21 12:10:57 2018 +0000
+++ b/config.py	Sun Jan 21 13:34:12 2018 +0000
@@ -11,6 +11,8 @@
 import logging
 from functools import reduce
 
+logger=logging.getLogger(__name__)
+
 #
 # Defaults
 #
@@ -124,7 +126,7 @@
 
 cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, "borgend", "config.yaml")
 
-logging.info("Reading configuration file %s" % cfgfile)
+logger.info("Reading configuration file %s" % cfgfile)
 
 if not (os.path.exists(cfgfile) and os.path.isfile(cfgfile)):
     raise SystemExit('Configuration file required: {cfgfile}')

mercurial