X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcore%2Ferror.c;h=7d14a2526aab596343563b72303484ae4394bfd1;hb=dc4c86175fb77da7d8d3346400658a94f3bd17a7;hp=cdd5d04afcdd98320d172691ac1d8cdbd451c756;hpb=fa5c130fbd0c75f3c47f1b28feb8d76a4791a93e;p=sysdb.git diff --git a/src/core/error.c b/src/core/error.c index cdd5d04..7d14a25 100644 --- a/src/core/error.c +++ b/src/core/error.c @@ -26,6 +26,7 @@ */ #include "core/error.h" +#include "core/plugin.h" #include "utils/strbuf.h" #include @@ -162,9 +163,7 @@ sdb_do_log(int prio) 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 */