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/OutputInit.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 '')
-rw-r--r-- | src/OutputInit.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/OutputInit.cxx b/src/OutputInit.cxx index 91f7b306f..49b5d68b9 100644 --- a/src/OutputInit.cxx +++ b/src/OutputInit.cxx @@ -50,15 +50,15 @@ static const struct audio_output_plugin * audio_output_detect(Error &error) { - LogInfo(output_domain, "Attempt to detect audio output device"); + LogDefault(output_domain, "Attempt to detect audio output device"); audio_output_plugins_for_each(plugin) { if (plugin->test_default_device == nullptr) continue; - FormatInfo(output_domain, - "Attempting to detect a %s audio device", - plugin->name); + FormatDefault(output_domain, + "Attempting to detect a %s audio device", + plugin->name); if (ao_plugin_test_default_device(plugin)) return plugin; } @@ -310,9 +310,9 @@ audio_output_new(const config_param ¶m, if (plugin == nullptr) return nullptr; - FormatInfo(output_domain, - "Successfully detected a %s audio device", - plugin->name); + FormatDefault(output_domain, + "Successfully detected a %s audio device", + plugin->name); } struct audio_output *ao = ao_plugin_init(plugin, param, error); |