X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Flog.c;h=9dceaad67bfa7cfdc34651f5608dcd47c81bf875;hb=8f46c2a3cb1e906c68cd658469974d1ab3761d4d;hp=f3bfea6f2939314807875d62b70d1f9cfe813cf8;hpb=6a6908d7031a79b5767d86a4da056f65a742ac9f;p=umurmur.git 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); }