Only log changes to DNS listeners when --log-debug is set.

This commit is contained in:
Simon Kelley
2021-03-12 22:09:14 +00:00
parent b260d222af
commit 4c30e9602b

View File

@@ -667,7 +667,7 @@ static int release_listener(struct listener *l)
int port; int port;
port = prettyprint_addr(&l->iface->addr, daemon->addrbuff); port = prettyprint_addr(&l->iface->addr, daemon->addrbuff);
my_syslog(LOG_DEBUG, _("stopped listening on %s(#%d): %s port %d"), my_syslog(LOG_DEBUG|MS_DEBUG, _("stopped listening on %s(#%d): %s port %d"),
l->iface->name, l->iface->index, daemon->addrbuff, port); l->iface->name, l->iface->index, daemon->addrbuff, port);
/* In case it ever returns */ /* In case it ever returns */
l->iface->done = 0; l->iface->done = 0;
@@ -1126,7 +1126,7 @@ void create_bound_listeners(int dienow)
if (!dienow) if (!dienow)
{ {
int port = prettyprint_addr(&iface->addr, daemon->addrbuff); int port = prettyprint_addr(&iface->addr, daemon->addrbuff);
my_syslog(LOG_DEBUG, _("listening on %s(#%d): %s port %d"), my_syslog(LOG_DEBUG|MS_DEBUG, _("listening on %s(#%d): %s port %d"),
iface->name, iface->index, daemon->addrbuff, port); iface->name, iface->index, daemon->addrbuff, port);
} }
} }
@@ -1153,7 +1153,7 @@ void create_bound_listeners(int dienow)
if (!dienow) if (!dienow)
{ {
int port = prettyprint_addr(&if_tmp->addr, daemon->addrbuff); int port = prettyprint_addr(&if_tmp->addr, daemon->addrbuff);
my_syslog(LOG_DEBUG, _("listening on %s port %d"), daemon->addrbuff, port); my_syslog(LOG_DEBUG|MS_DEBUG, _("listening on %s port %d"), daemon->addrbuff, port);
} }
} }
} }