From 00416dd9426f90cb448b8fbccee8d5425e9e789e Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 9 Feb 2021 18:53:32 +0100 Subject: [PATCH] logging to console --- sink/logging.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sink/logging.c b/sink/logging.c index d8c1243..57ddc67 100644 --- a/sink/logging.c +++ b/sink/logging.c @@ -2,14 +2,16 @@ #include #include +#include void logmsg(int prio, const char* format, ...) { va_list vl; - openlog("counter", 0, LOG_LOCAL0); + // openlog("counter", 0, LOG_LOCAL0); va_start(vl, format); - vsyslog(prio, format, vl); + //vsyslog(prio, format, vl); + vprintf(prio, format, vl); va_end(vl); - closelog(); + // closelog(); }