mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
logging and debugging fixes
* optparse values may not be strings, ConfigParser requires strings * forcing DEBUG level should work for all handlers regardless of configuration source (file, command line options)
This commit is contained in:
parent
4212f6dfe0
commit
6b5db413c5
2 changed files with 8 additions and 5 deletions
|
@ -81,10 +81,10 @@ for option in parser.option_list:
|
|||
if key:
|
||||
section = "logging" if key == "debug" else "server"
|
||||
value = getattr(options, key)
|
||||
radicale.config.set(section, key, value)
|
||||
radicale.config.set(section, key, str(value))
|
||||
|
||||
# Start logging
|
||||
radicale.log.start(options.debug)
|
||||
radicale.log.start()
|
||||
|
||||
# Fork if Radicale is launched as daemon
|
||||
if options.daemon:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue