mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Only log changes to DNS listeners when --log-debug is set.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user