diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-10-12 21:26:27 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-10-12 21:26:27 +0000 |
commit | fafdf6809500c41e21ba836f8cacd57fe4f738ed (patch) | |
tree | 65514efdadc5e78ba2b5e9c38383f51eeae56d59 /gtk | |
parent | f57b54eeb23e218b0d9798c122113bf62f14015a (diff) |
from Richard van der Hoff:
Attached is a patch which makes the console log level (warning/message/debug etc) a configurable preference. There's no gui for setting it, but since it's pretty much only going to be useful for developers, I'm sure you'll cope...
----
I've added a small comment to the file output that it has no dialog output
svn path=/trunk/; revision=16205
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/main.c b/gtk/main.c index 7176cb2d4e..5c7cd10d62 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -2736,9 +2736,8 @@ console_log_handler(const char *log_domain, GLogLevelFlags log_level, const char *level; - /* change this, if you want to see more verbose log output */ - /* XXX - make this a pref value */ - if( (log_level & G_LOG_LEVEL_MASK) > G_LOG_LEVEL_WARNING) { + /* ignore log message, if log_level isn't interesting */ + if( !(log_level & G_LOG_LEVEL_MASK & prefs.console_log_level)) { return; } |