From bee8601f8bc30306ea8839c4de0d06d732a2a6ba Mon Sep 17 00:00:00 2001 From: fatbob313 Date: Tue, 1 Sep 2009 16:44:26 +0000 Subject: [PATCH] Correct log levels --- src/log.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/log.c b/src/log.c index f3bfea6..9dceaad 100644 --- a/src/log.c +++ b/src/log.c @@ -84,7 +84,7 @@ void Log_warn(const char *logstring, ...) if (termprint) fprintf(stderr, "%s", buf); /* XXX - other targets for logging */ else - syslog(LOG_ALERT, buf); + syslog(LOG_WARNING, buf); } void Log_info(const char *logstring, ...) @@ -101,7 +101,7 @@ void Log_info(const char *logstring, ...) if (termprint) fprintf(stderr, "%s", buf); /* XXX - other targets for logging */ else - syslog(LOG_ALERT, buf); + syslog(LOG_INFO, buf); } #ifdef DEBUG @@ -119,7 +119,7 @@ void Log_debug(const char *logstring, ...) if (termprint) fprintf(stderr, "%s", buf); /* XXX - other targets for logging */ else - syslog(LOG_INFO, buf); + syslog(LOG_DEBUG, buf); } #endif @@ -136,6 +136,6 @@ void Log_fatal(const char *logstring, ...) if (termprint) fprintf(stderr, "%s", buf); /* XXX - other targets for logging */ else - syslog(LOG_INFO, buf); + syslog(LOG_CRIT, buf); exit(1); } -- 2.30.2