[hamster-applet] debug flag was not triggering debug
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] debug flag was not triggering debug
- Date: Mon, 9 Nov 2009 20:39:39 +0000 (UTC)
commit caaf9bacfd657ea6fc09c61c098bf890f1657507
Author: Toms Bauģis <toms baugis gmail com>
Date: Mon Nov 9 20:39:13 2009 +0000
debug flag was not triggering debug
hamster/hamster-applet.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/hamster/hamster-applet.py b/hamster/hamster-applet.py
index f0f6ffc..1877efb 100755
--- a/hamster/hamster-applet.py
+++ b/hamster/hamster-applet.py
@@ -76,8 +76,12 @@ if __name__ == "__main__":
# in console set logging lower, in panel write log to file
log_format = "%(asctime)s %(levelname)s: %(message)s"
- if options.standalone:
- logging.basicConfig(level=logging.INFO, format = log_format)
+ if options.standalone or options.start_window:
+ log_level = logging.INFO
+ if options.debug:
+ log_level = logging.DEBUG
+
+ logging.basicConfig(level = log_level, format = log_format)
else: #otherwise write to the sessions file
logging.basicConfig(filename = os.path.join(os.path.expanduser("~"),
'.xsession-errors'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]