From: Konstantin Stepanov Date: Sun, 12 Dec 2010 01:14:08 +0000 (+0200) Subject: new -q flag for dbuscron X-Git-Tag: v1.1.0~14 X-Git-Url: http://vcs.maemo.org/git/?p=dbuscron;a=commitdiff_plain;h=b4391331551a4c31d45563e1873856ada3a5f987 new -q flag for dbuscron -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. --- diff --git a/dbuscron.py b/dbuscron.py index 610f07f..a2a17b3 100755 --- a/dbuscron.py +++ b/dbuscron.py @@ -17,7 +17,7 @@ if __name__ == '__main__': from dbuscron import Logger, OptionsParser - options = OptionsParser('fvc:l:') + options = OptionsParser('fqvc:l:') daemon = not options.f logout = sys.stderr @@ -25,7 +25,7 @@ if __name__ == '__main__': 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