aboutsummaryrefslogtreecommitdiffstats
path: root/src/ZeroconfGlue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-27 22:31:24 +0200
committerMax Kellermann <max@duempel.org>2013-10-02 08:57:55 +0200
commit060814daa83f6a94f5934464ae42a406c5c7e947 (patch)
treef636ec6cdbb8e52fda6db987d2a28fc73c7b94b4 /src/ZeroconfGlue.cxx
parentc53492a76a8a05825e1c7f699c05645eee891199 (diff)
downloadmpd-060814daa83f6a94f5934464ae42a406c5c7e947.tar.gz
mpd-060814daa83f6a94f5934464ae42a406c5c7e947.tar.xz
mpd-060814daa83f6a94f5934464ae42a406c5c7e947.zip
Log: new logging library API
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
Diffstat (limited to '')
-rw-r--r--src/ZeroconfGlue.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ZeroconfGlue.cxx b/src/ZeroconfGlue.cxx
index 6e50d07ef..44c257872 100644
--- a/src/ZeroconfGlue.cxx
+++ b/src/ZeroconfGlue.cxx
@@ -24,9 +24,11 @@
#include "ConfigGlobal.hxx"
#include "ConfigOption.hxx"
#include "Listen.hxx"
+#include "util/Domain.hxx"
+#include "Log.hxx"
#include "gcc.h"
-#include <glib.h>
+static constexpr Domain zeroconf_domain("zeroconf");
/* The default service name to publish
* (overridden by 'zeroconf_name' config parameter)
@@ -48,7 +50,8 @@ ZeroconfInit(gcc_unused EventLoop &loop)
return;
if (listen_port <= 0) {
- g_warning("No global port, disabling zeroconf");
+ LogInfo(zeroconf_domain,
+ "No global port, disabling zeroconf");
zeroconfEnabled = false;
return;
}