aboutsummaryrefslogtreecommitdiffstats
path: root/src/ZeroconfAvahi.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-04 22:20:11 +0100
committerMax Kellermann <max@duempel.org>2013-11-04 22:27:49 +0100
commitecf12a60e8f82df59b1cf1fcbab1609fb2dfd7f4 (patch)
tree2ac4cbbf24625362f49c39e7aac3f5b3a4470e32 /src/ZeroconfAvahi.cxx
parent6de85cb047b3859f0e1b6d6db86cb735882278c8 (diff)
downloadmpd-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 'src/ZeroconfAvahi.cxx')
-rw-r--r--src/ZeroconfAvahi.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ZeroconfAvahi.cxx b/src/ZeroconfAvahi.cxx
index 7e044c030..083647b42 100644
--- a/src/ZeroconfAvahi.cxx
+++ b/src/ZeroconfAvahi.cxx
@@ -61,9 +61,9 @@ static void avahiGroupCallback(AvahiEntryGroup * g,
switch (state) {
case AVAHI_ENTRY_GROUP_ESTABLISHED:
/* The entry group has been established successfully */
- FormatInfo(avahi_domain,
- "Service '%s' successfully established.",
- avahiName);
+ FormatDefault(avahi_domain,
+ "Service '%s' successfully established.",
+ avahiName);
break;
case AVAHI_ENTRY_GROUP_COLLISION:
@@ -72,9 +72,9 @@ static void avahiGroupCallback(AvahiEntryGroup * g,
avahi_free(avahiName);
avahiName = n;
- FormatInfo(avahi_domain,
- "Service name collision, renaming service to '%s'",
- avahiName);
+ FormatDefault(avahi_domain,
+ "Service name collision, renaming service to '%s'",
+ avahiName);
/* And recreate the services */
avahiRegisterService(avahi_entry_group_get_client(g));
@@ -169,8 +169,8 @@ static void avahiClientCallback(AvahiClient * c, AvahiClientState state,
case AVAHI_CLIENT_FAILURE:
reason = avahi_client_errno(c);
if (reason == AVAHI_ERR_DISCONNECTED) {
- LogInfo(avahi_domain,
- "Client Disconnected, will reconnect shortly");
+ LogDefault(avahi_domain,
+ "Client Disconnected, will reconnect shortly");
if (avahiGroup) {
avahi_entry_group_free(avahiGroup);
avahiGroup = nullptr;