diff options
author | Max Kellermann <max@duempel.org> | 2013-11-04 22:20:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-04 22:27:49 +0100 |
commit | ecf12a60e8f82df59b1cf1fcbab1609fb2dfd7f4 (patch) | |
tree | 2ac4cbbf24625362f49c39e7aac3f5b3a4470e32 /src/Main.cxx | |
parent | 6de85cb047b3859f0e1b6d6db86cb735882278c8 (diff) | |
download | mpd-ecf12a60e8f82df59b1cf1fcbab1609fb2dfd7f4.tar.gz mpd-ecf12a60e8f82df59b1cf1fcbab1609fb2dfd7f4.tar.xz mpd-ecf12a60e8f82df59b1cf1fcbab1609fb2dfd7f4.zip |
Log: add level "DEFAULT"
Map LogLevel::INFO to G_LOG_LEVEL_INFO, and LogLevel::DEFAULT to
G_LOG_LEVEL_MESSAGE. Now client connect/disconnect message are only
logged on log_level "secure".
Diffstat (limited to 'src/Main.cxx')
-rw-r--r-- | src/Main.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index 5d47c0a1c..b45e2c3ae 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -160,18 +160,18 @@ glue_db_init_and_load(void) const struct config_param *path = config_get_param(CONF_DB_FILE); if (param != nullptr && path != nullptr) - LogInfo(main_domain, - "Found both 'database' and 'db_file' setting - ignoring the latter"); + LogWarning(main_domain, + "Found both 'database' and 'db_file' setting - ignoring the latter"); if (!mapper_has_music_directory()) { if (param != nullptr) - LogInfo(main_domain, - "Found database setting without " - "music_directory - disabling database"); + LogDefault(main_domain, + "Found database setting without " + "music_directory - disabling database"); if (path != nullptr) - LogInfo(main_domain, - "Found db_file setting without " - "music_directory - disabling database"); + LogDefault(main_domain, + "Found db_file setting without " + "music_directory - disabling database"); return true; } |