zeroconf/Avahi: remove useless log messages
This commit is contained in:
parent
a312629aad
commit
40d061621b
@ -24,14 +24,11 @@
|
|||||||
#include "avahi/Publisher.hxx"
|
#include "avahi/Publisher.hxx"
|
||||||
#include "avahi/Service.hxx"
|
#include "avahi/Service.hxx"
|
||||||
#include "ZeroconfInternal.hxx"
|
#include "ZeroconfInternal.hxx"
|
||||||
#include "util/Domain.hxx"
|
|
||||||
#include "util/RuntimeError.hxx"
|
#include "util/RuntimeError.hxx"
|
||||||
#include "Log.hxx"
|
#include "Log.hxx"
|
||||||
|
|
||||||
#include <avahi-common/domain.h>
|
#include <avahi-common/domain.h>
|
||||||
|
|
||||||
static constexpr Domain avahi_domain("avahi");
|
|
||||||
|
|
||||||
class AvahiGlue final : Avahi::ErrorHandler {
|
class AvahiGlue final : Avahi::ErrorHandler {
|
||||||
public:
|
public:
|
||||||
Avahi::Client client;
|
Avahi::Client client;
|
||||||
@ -56,8 +53,6 @@ static AvahiGlue *avahi_glue;
|
|||||||
void
|
void
|
||||||
AvahiInit(EventLoop &loop, const char *serviceName, unsigned port)
|
AvahiInit(EventLoop &loop, const char *serviceName, unsigned port)
|
||||||
{
|
{
|
||||||
LogDebug(avahi_domain, "Initializing interface");
|
|
||||||
|
|
||||||
if (!avahi_is_valid_service_name(serviceName))
|
if (!avahi_is_valid_service_name(serviceName))
|
||||||
throw FormatRuntimeError("Invalid zeroconf_name \"%s\"", serviceName);
|
throw FormatRuntimeError("Invalid zeroconf_name \"%s\"", serviceName);
|
||||||
|
|
||||||
@ -72,7 +67,5 @@ AvahiInit(EventLoop &loop, const char *serviceName, unsigned port)
|
|||||||
void
|
void
|
||||||
AvahiDeinit()
|
AvahiDeinit()
|
||||||
{
|
{
|
||||||
LogDebug(avahi_domain, "Shutting down interface");
|
|
||||||
|
|
||||||
delete avahi_glue;
|
delete avahi_glue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user