Code

src/plugin.c: plugin_log: Print to stderr if no log plugin has been loaded.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 1 Oct 2009 19:27:40 +0000 (21:27 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 1 Oct 2009 19:27:40 +0000 (21:27 +0200)
src/plugin.c

index 5d882e64de7e69f47b47c53eeb7e63e4adea1045..11a0ef6eadbada45aad092f7116c879aeef9dfdd 100644 (file)
@@ -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)