From b3e400719750b4b40851be6044315b48f07722cb Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 26 Jul 2024 16:44:59 -0700 Subject: lib: refactor memstats logging, fix ACTIVEATEXIT Move the various destinations handling into lib/memory.c, include "normal" logging as target, and make `ACTIVEATEXIT` properly non-error as it was intended to be. Signed-off-by: David Lamparter --- lib/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/log.c') diff --git a/lib/log.c b/lib/log.c index 04b789b5da..2b049cebe4 100644 --- a/lib/log.c +++ b/lib/log.c @@ -306,7 +306,7 @@ void memory_oom(size_t size, const char *name) "out of memory: failed to allocate %zu bytes for %s object", size, name); zlog_backtrace(LOG_CRIT); - log_memstats(stderr, "log"); + log_memstats(zlog_progname, true); abort(); } -- cgit v1.2.3