From: epage Date: Sat, 9 Jan 2010 00:38:03 +0000 (+0000) Subject: Filtering notifications to output a bit less X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=cbd9b578d1054c0bc72c3b92f8a2e254ae965334;p=gc-dialer Filtering notifications to output a bit less git-svn-id: file:///svnroot/gc-dialer/trunk@617 c39d3808-3fe2-4d86-a59f-b7f623ee9f21 --- diff --git a/src/alarm_notify.py b/src/alarm_notify.py index 6b4f434..7b7e93f 100755 --- a/src/alarm_notify.py +++ b/src/alarm_notify.py @@ -154,7 +154,7 @@ def notify_on_change(): if __name__ == "__main__": - logging.basicConfig(level=logging.DEBUG, filename=constants._notifier_logpath_) + logging.basicConfig(level=logging.WARNING, filename=constants._notifier_logpath_) logging.info("Notifier %s-%s" % (constants.__version__, constants.__build__)) logging.info("OS: %s" % (os.uname()[0], )) logging.info("Kernel: %s (%s) for %s" % os.uname()[2:]) diff --git a/src/examples/log_notifier.py b/src/examples/log_notifier.py index 6e63b5d..2318549 100644 --- a/src/examples/log_notifier.py +++ b/src/examples/log_notifier.py @@ -16,7 +16,7 @@ import alarm_notify def notify_on_change(): filename = "%s/notification.log" % constants._data_path_ - with open(filename, "a") as file: + with open(constants._notifier_logpath_, "a") as file: file.write("Notification: %r\n" % (datetime.datetime.now(), )) config = ConfigParser.SafeConfigParser() diff --git a/src/examples/sound_notifier.py b/src/examples/sound_notifier.py index 97cf106..c31e413 100644 --- a/src/examples/sound_notifier.py +++ b/src/examples/sound_notifier.py @@ -36,7 +36,7 @@ def notify_on_change(): if __name__ == "__main__": - logging.basicConfig(level=logging.DEBUG, filename=constants._notifier_logpath_) + logging.basicConfig(level=logging.WARNING, filename=constants._notifier_logpath_) logging.info("Sound Notifier %s-%s" % (constants.__version__, constants.__build__)) logging.info("OS: %s" % (os.uname()[0], )) logging.info("Kernel: %s (%s) for %s" % os.uname()[2:])