From ecf12a60e8f82df59b1cf1fcbab1609fb2dfd7f4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 4 Nov 2013 22:20:11 +0100 Subject: 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". --- src/OutputInit.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/OutputInit.cxx') 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); -- cgit v1.2.3