Extra help info, fixed logging for dispense failures, possible fix for logging errors
[tpg/opendispense2.git] / src / server / logging.c
index 51cc8d2..d7313c9 100644 (file)
@@ -5,15 +5,26 @@
  */
 #include <stdlib.h>
 #include <stdio.h>
+#include <stdarg.h>
 #include "common.h"
+#include <syslog.h>
 
 // === CODE ==
 void Log_Error(const char *Format, ...)
 {
-       
+       va_list args;
+
+       va_start(args, Format);
+       vsyslog(LOG_WARNING, Format, args);
+       va_end(args);
 }
 
 void Log_Info(const char *Format, ...)
 {
+       va_list args;
+       
+       va_start(args, Format);
+       vsyslog(LOG_INFO, Format, args);
+       va_end(args);
 }
 

UCC git Repository :: git.ucc.asn.au