From 060814daa83f6a94f5934464ae42a406c5c7e947 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 27 Sep 2013 22:31:24 +0200 Subject: Log: new logging library API Prepare to migrate away from GLib. Currently, we're still using GLib as a backend. --- src/ZeroconfGlue.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ZeroconfGlue.cxx') 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 +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; } -- cgit v1.2.3