diff --git a/src/core/error.c b/src/core/error.c
index cdd5d04afcdd98320d172691ac1d8cdbd451c756..7d14a2526aab596343563b72303484ae4394bfd1 100644 (file)
--- a/src/core/error.c
+++ b/src/core/error.c
*/
#include "core/error.h"
+#include "core/plugin.h"
#include "utils/strbuf.h"
#include <pthread.h>
if (ctx->logged)
return 0;
- ret = fprintf(stderr, "[%s] %s\n",
- SDB_LOG_PRIO_TO_STRING(prio),
- sdb_strbuf_string(ctx->msg));
+ ret = sdb_plugin_log(prio, sdb_strbuf_string(ctx->msg));
ctx->logged = 1;
return ret;
} /* sdb_do_log */