diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2023-01-02 22:17:57 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2023-01-02 22:17:57 +0000 |
commit | 1da54210fc57e593c2233a78208b2cea9d62599c (patch) | |
tree | 06e1bfe3562055834d9a42317ea5d6ac34ed3e3a | |
parent | 43a2a66531c3d998e78c53ad792b98acf3417d49 (diff) | |
download | dnsmasq-1da54210fc57e593c2233a78208b2cea9d62599c.tar.gz |
Log all cache internal errors.
-rw-r--r-- | src/cache.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/cache.c b/src/cache.c index 100c572..6ed4e8c 100644 --- a/src/cache.c +++ b/src/cache.c @@ -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. */ if (free_avail) { - static int warned = 0; - if (!warned) - { - my_syslog(LOG_ERR, _("Internal error in cache.")); - /* Log the entry we tried to delete. */ - dump_cache_entry(free_avail, now); - warned = 1; - } + my_syslog(LOG_ERR, _("Internal error in cache.")); + /* Log the entry we tried to delete. */ + dump_cache_entry(free_avail, now); insert_error = 1; return NULL; } |