LogLevel: rename DEFAULT to NOTICE
"DEFAULT" is a bad name - all it says is that it's the default value, but it doesn't say what it means. The name NOTICE mimics the syslog level.
This commit is contained in:
+7
-7
@@ -62,15 +62,15 @@ FilteredAudioOutput::FilteredAudioOutput(const char *_plugin_name,
|
||||
static const AudioOutputPlugin *
|
||||
audio_output_detect()
|
||||
{
|
||||
LogDefault(output_domain, "Attempt to detect audio output device");
|
||||
LogInfo(output_domain, "Attempt to detect audio output device");
|
||||
|
||||
audio_output_plugins_for_each(plugin) {
|
||||
if (plugin->test_default_device == nullptr)
|
||||
continue;
|
||||
|
||||
FormatDefault(output_domain,
|
||||
"Attempting to detect a %s audio device",
|
||||
plugin->name);
|
||||
FormatInfo(output_domain,
|
||||
"Attempting to detect a %s audio device",
|
||||
plugin->name);
|
||||
if (ao_plugin_test_default_device(plugin))
|
||||
return plugin;
|
||||
}
|
||||
@@ -289,9 +289,9 @@ audio_output_new(EventLoop &event_loop,
|
||||
|
||||
plugin = audio_output_detect();
|
||||
|
||||
FormatDefault(output_domain,
|
||||
"Successfully detected a %s audio device",
|
||||
plugin->name);
|
||||
FormatNotice(output_domain,
|
||||
"Successfully detected a %s audio device",
|
||||
plugin->name);
|
||||
}
|
||||
|
||||
std::unique_ptr<AudioOutput> ao(ao_plugin_init(event_loop, *plugin,
|
||||
|
||||
@@ -376,7 +376,7 @@ mpd_jack_error(const char *msg)
|
||||
static void
|
||||
mpd_jack_info(const char *msg)
|
||||
{
|
||||
LogDefault(jack_output_domain, msg);
|
||||
LogNotice(jack_output_domain, msg);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -322,8 +322,8 @@ void WasapiOutput::Enable() {
|
||||
|
||||
if (enumerate_devices && SafeTry([this]() { EnumerateDevices(); })) {
|
||||
for (const auto &desc : device_desc) {
|
||||
FormatDefault(wasapi_output_domain, "Device \"%u\" \"%s\"",
|
||||
desc.first, desc.second.c_str());
|
||||
FormatNotice(wasapi_output_domain, "Device \"%u\" \"%s\"",
|
||||
desc.first, desc.second.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user