From 8d2f2ffd15ac83343aae58c82577b929e2e5f4ab Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 1 Oct 2009 21:27:40 +0200 Subject: [PATCH] src/plugin.c: plugin_log: Print to stderr if no log plugin has been loaded. --- src/plugin.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugin.c b/src/plugin.c index 5d882e64..11a0ef6e 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -1444,7 +1444,12 @@ void plugin_log (int level, const char *format, ...) llentry_t *le; if (list_log == NULL) + { + va_start (ap, format); + vfprintf (stderr, format, ap); + va_end (ap); return; + } #if !COLLECT_DEBUG if (level >= LOG_DEBUG) -- 2.30.2