Correctly initialize the logger in the WSGI and FastCGI scripts
Fix #574.
This commit is contained in:
parent
7ad1f985a6
commit
78e0bfd449
@ -32,5 +32,7 @@ from radicale import Application, config, log
|
||||
|
||||
|
||||
configuration = config.load([os.environ.get("RADICALE_CONFIG")])
|
||||
logger = log.start()
|
||||
filename = os.path.expanduser(configuration.get("logging", "config"))
|
||||
debug = configuration.getboolean("logging", "debug")
|
||||
logger = log.start("radicale", filename, debug)
|
||||
WSGIServer(Application(configuration, logger)).run()
|
||||
|
@ -26,5 +26,7 @@ from radicale import Application, config, log
|
||||
|
||||
|
||||
configuration = config.load([os.environ.get("RADICALE_CONFIG")])
|
||||
logger = log.start()
|
||||
filename = os.path.expanduser(configuration.get("logging", "config"))
|
||||
debug = configuration.getboolean("logging", "debug")
|
||||
logger = log.start("radicale", filename, debug)
|
||||
application = Application(configuration, logger)
|
||||
|
Loading…
Reference in New Issue
Block a user