log_printf instead of printf
[psensor.git] / src / lib / log.c
index f5eb282..ee75153 100644 (file)
@@ -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()