Log all cache internal errors.

This commit is contained in:
Simon Kelley
2023-01-02 22:17:57 +00:00
parent 43a2a66531
commit 1da54210fc

View File

@@ -655,14 +655,9 @@ static struct crec *really_insert(char *name, union all_addr *addr, unsigned sho
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; my_syslog(LOG_ERR, _("Internal error in cache."));
if (!warned) /* Log the entry we tried to delete. */
{ dump_cache_entry(free_avail, now);
my_syslog(LOG_ERR, _("Internal error in cache."));
/* Log the entry we tried to delete. */
dump_cache_entry(free_avail, now);
warned = 1;
}
insert_error = 1; insert_error = 1;
return NULL; return NULL;
} }