aboutsummaryrefslogtreecommitdiffstats
path: root/src/ZeroconfGlue.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ZeroconfGlue.cxx')
-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;
}