-q is the opposite of -v: the more -q's on command line, the quiter the output.
Also default log level is set to warning.
from dbuscron import Logger, OptionsParser
- options = OptionsParser('fvc:l:')
+ options = OptionsParser('fqvc:l:')
daemon = not options.f
logout = sys.stderr
logout = open(options.l, 'wb')
log = Logger(__name__, out=logout)
- log.level = options.v + Logger.ERROR
+ log.level = options.v - options.q + Logger.WARNING
if daemon:
from dbuscron.daemonize import daemonize