[Daemon] Fix unable to use uppercase log level

This commit is contained in:
Calum Lind 2016-04-27 08:20:58 +01:00
parent 4e5754b285
commit 5590c31ace

View file

@ -179,6 +179,8 @@ this should be an IP address", metavar="IFACE",
# Setup the logger
if options.quiet:
options.loglevel = "none"
if options.loglevel:
options.loglevel = options.loglevel.lower()
if options.logfile:
# Try to create the logfile's directory if it doesn't exist
try: