diff options
author | Max Kellermann <max@musicpd.org> | 2020-09-23 12:54:15 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-09-23 14:22:33 +0200 |
commit | c843bce9f5f4d7e56c89e343eabc37d554701a5e (patch) | |
tree | 2836bd237c6745da883cb4930d15d68d61884da2 /src/zeroconf | |
parent | e3106a019d2909c2fdc9fd0e29e60389eb87761d (diff) |
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.
Diffstat (limited to 'src/zeroconf')
-rw-r--r-- | src/zeroconf/ZeroconfAvahi.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/zeroconf/ZeroconfAvahi.cxx b/src/zeroconf/ZeroconfAvahi.cxx index 8f983bc93..c7ee5843f 100644 --- a/src/zeroconf/ZeroconfAvahi.cxx +++ b/src/zeroconf/ZeroconfAvahi.cxx @@ -59,9 +59,9 @@ AvahiGroupCallback(AvahiEntryGroup *g, switch (state) { case AVAHI_ENTRY_GROUP_ESTABLISHED: /* The entry group has been established successfully */ - FormatDefault(avahi_domain, - "Service '%s' successfully established.", - avahi_name); + FormatNotice(avahi_domain, + "Service '%s' successfully established.", + avahi_name); break; case AVAHI_ENTRY_GROUP_COLLISION: @@ -72,9 +72,9 @@ AvahiGroupCallback(AvahiEntryGroup *g, avahi_name = n; } - FormatDefault(avahi_domain, - "Service name collision, renaming service to '%s'", - avahi_name); + FormatNotice(avahi_domain, + "Service name collision, renaming service to '%s'", + avahi_name); /* And recreate the services */ AvahiRegisterService(avahi_entry_group_get_client(g)); @@ -171,8 +171,8 @@ MyAvahiClientCallback(AvahiClient *c, AvahiClientState state, case AVAHI_CLIENT_FAILURE: reason = avahi_client_errno(c); if (reason == AVAHI_ERR_DISCONNECTED) { - LogDefault(avahi_domain, - "Client Disconnected, will reconnect shortly"); + LogNotice(avahi_domain, + "Client Disconnected, will reconnect shortly"); if (avahi_group != nullptr) { avahi_entry_group_free(avahi_group); avahi_group = nullptr; |