projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ec4487
)
src/plugin.c: plugin_log: Print to stderr if no log plugin has been loaded.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Thu, 1 Oct 2009 19:27:40 +0000
(21:27 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Fri, 18 Dec 2009 07:35:33 +0000
(08:35 +0100)
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index
6fb7520
..
24e5e01
100644
(file)
--- 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)