diff options
author | Max Kellermann <max@duempel.org> | 2008-11-14 18:27:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-14 18:27:11 +0100 |
commit | 4a1ad61e8e5fb7703bc945b0ee6dfdd3eb78e622 (patch) | |
tree | f080bc803e3d3eead53dcc708e41e3b72c8cea69 /src/log.c | |
parent | 7720a1195ae9e90a427e0fc5d14023405d224b6a (diff) | |
download | mpd-4a1ad61e8e5fb7703bc945b0ee6dfdd3eb78e622.tar.gz mpd-4a1ad61e8e5fb7703bc945b0ee6dfdd3eb78e622.tar.xz mpd-4a1ad61e8e5fb7703bc945b0ee6dfdd3eb78e622.zip |
log: check the log threshold in log_func()
The threshold was only checked in the deprecated logging functions
(ERROR(), WARNING(), ...). Add the check to the GLib logging handler.
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -75,6 +75,9 @@ mpd_log_func(G_GNUC_UNUSED const gchar *log_domain, ? stderr : stdout; char *converted; + if (log_level > (int)log_threshold) + return; + if (log_charset != NULL) { converted = g_convert_with_fallback(message, -1, log_charset, "utf-8", |