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".
This commit is contained in:
16
src/Main.cxx
16
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user