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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user