fixed logging
[psensor.git] / src / lib / log.c
index f5eb282..2de7037 100644 (file)
@@ -28,7 +28,7 @@
 #include "log.h"
 
 static FILE *file;
-int log_level =  LOG_INFO;
+int log_level =  LOG_WARN;
 
 void log_open(const char *path)
 {
@@ -37,7 +37,7 @@ void log_open(const char *path)
        if (file)
                log_printf(LOG_INFO, "Start logging");
        else
-               fprintf(stderr, _("Cannot open log file: %s\n"), path);
+               log_printf(LOG_ERR, _("Cannot open log file: %s"), path);
 }
 
 void log_close()