aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-20 17:26:49 +0100
committerMax Kellermann <max@duempel.org>2008-12-20 17:26:49 +0100
commitbfaaf425c2989ac4d04303d220a51e9e173084d3 (patch)
treead0cde1e3fb39afb4b3d7b1a2eb0f86e8d3adbf2 /src
parent5c0c66d676a7f2e69b64ca59ba7095d5a58bed40 (diff)
downloadmpd-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 '')
-rw-r--r--src/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log.c b/src/log.c
index e09aaf32a..1510b29e9 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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")) {