diff options
author | Max Kellermann <max@duempel.org> | 2008-12-20 17:26:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-20 17:26:49 +0100 |
commit | bfaaf425c2989ac4d04303d220a51e9e173084d3 (patch) | |
tree | ad0cde1e3fb39afb4b3d7b1a2eb0f86e8d3adbf2 /src/log.c | |
parent | 5c0c66d676a7f2e69b64ca59ba7095d5a58bed40 (diff) | |
download | mpd-bfaaf425c2989ac4d04303d220a51e9e173084d3.tar.gz mpd-bfaaf425c2989ac4d04303d220a51e9e173084d3.tar.xz mpd-bfaaf425c2989ac4d04303d220a51e9e173084d3.zip |
log: map log level "SECURE" to GLib's "INFO"
Make "secure" a log level different from "default". "secure" should be
right between "default" and "verbose". Map "default" to Glib's
"MESSAGE" log level.
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -33,12 +33,12 @@ #include <pthread.h> #include <glib.h> -#define LOG_LEVEL_SECURE G_LOG_LEVEL_MESSAGE +#define LOG_LEVEL_SECURE G_LOG_LEVEL_INFO #define LOG_DATE_BUF_SIZE 16 #define LOG_DATE_LEN (LOG_DATE_BUF_SIZE - 1) -static unsigned int log_threshold = G_LOG_LEVEL_INFO; +static unsigned int log_threshold = G_LOG_LEVEL_MESSAGE; static const char *log_charset; @@ -116,7 +116,7 @@ void initLog(bool verbose) if (!(param = getConfigParam(CONF_LOG_LEVEL))) return; if (0 == strcmp(param->value, "default")) { - log_threshold = G_LOG_LEVEL_INFO; + log_threshold = G_LOG_LEVEL_MESSAGE; } else if (0 == strcmp(param->value, "secure")) { log_threshold = LOG_LEVEL_SECURE; } else if (0 == strcmp(param->value, "verbose")) { |