Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Log level defaults to ERROR

Also added a config option log_level to set the logging level to any of:
logging.{DEBUG, INFO, WARNING, ERROR, CRITICAL}

Closes #246
  • Loading branch information...
commit d8a5b5b93e7f7b9626f7f5f896349427272f713f 1 parent f389778
Tycho Andersen tych0 authored
3  CHANGELOG
View
@@ -22,6 +22,8 @@ qtile $NEXT, released $DATE:
- added "next urgent window" command
- added font shadowing on widgets
- maildir widget supports multiple folders
+ - new config option log_level to set logging level (any of
+ logging.{DEBUG, INFO, WARNING, ERROR, CRITICAL})
* bugfixes
- don't crash on restart when the config has errors
- save layout and selected group state on restart
@@ -29,6 +31,7 @@ qtile $NEXT, released $DATE:
- fix non-black systray icon backgrounds
- drastically reduce the number of timeout_add calls in most widgets
- restart on RandR attach events to allow for new screens
+ - log level defaults to ERROR
qtile 0.5, released 2012-11-11:
(Note, this is not complete! Many, many changes have gone in to 0.5, by a
2  bin/qtile
View
@@ -57,7 +57,7 @@ def make_qtile():
)
parser.add_argument(
'-l', '--log-level',
- default='INFO',
+ default='ERROR',
dest='log_level',
choices=('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'),
help='Set qtile log level'
2  libqtile/log_utils.py
View
@@ -40,7 +40,7 @@ def format(self, record):
return message + self.reset_seq
-def init_log(log_level=logging.WARNING, logger='qtile'):
+def init_log(log_level=logging.ERROR, logger='qtile'):
handler = logging.FileHandler(
os.path.expanduser('~/.%s.log' % logger))
handler.setFormatter(
4 libqtile/manager.py
View
@@ -71,7 +71,11 @@ def __init__(self, config,
if log == None:
log = init_log()
self.log = log
+ if hasattr(config, "log_level"):
+ self.log.setLevel(config.log_level)
+
self.no_spawn = no_spawn
+
if not displayName:
displayName = os.environ.get("DISPLAY")
if not displayName:
Please sign in to comment.
Something went wrong with that request. Please try again.