log_printf instead of printf
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 7 Nov 2011 22:20:30 +0000 (22:20 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 7 Nov 2011 22:20:30 +0000 (22:20 +0000)
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()