From: Florian Forster Date: Thu, 1 Oct 2009 19:27:40 +0000 (+0200) Subject: src/plugin.c: plugin_log: Print to stderr if no log plugin has been loaded. X-Git-Tag: collectd-4.7.5~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=00a87614c6652bf67be9d717dc4ef9efd703f552;p=collectd.git src/plugin.c: plugin_log: Print to stderr if no log plugin has been loaded. --- diff --git a/src/plugin.c b/src/plugin.c index 6fb75206..24e5e01e 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -1424,7 +1424,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)