mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Log all cache internal errors.
This commit is contained in:
@@ -654,15 +654,10 @@ static struct crec *really_insert(char *name, union all_addr *addr, unsigned sho
|
|||||||
a tight loop here. If that happens, abandon the
|
a tight loop here. If that happens, abandon the
|
||||||
insert. Once in this state, all inserts will probably fail. */
|
insert. Once in this state, all inserts will probably fail. */
|
||||||
if (free_avail)
|
if (free_avail)
|
||||||
{
|
|
||||||
static int warned = 0;
|
|
||||||
if (!warned)
|
|
||||||
{
|
{
|
||||||
my_syslog(LOG_ERR, _("Internal error in cache."));
|
my_syslog(LOG_ERR, _("Internal error in cache."));
|
||||||
/* Log the entry we tried to delete. */
|
/* Log the entry we tried to delete. */
|
||||||
dump_cache_entry(free_avail, now);
|
dump_cache_entry(free_avail, now);
|
||||||
warned = 1;
|
|
||||||
}
|
|
||||||
insert_error = 1;
|
insert_error = 1;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user