From 9820c0e208fa5c7467fb89b1bda86ced6962e02f Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 4 May 2006 07:55:42 +0000 Subject: - applied patch from andreas - pem loading - secrets file parsing - ikev2 testcase - some other additions here and there --- src/charon/lib/utils/logger.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/charon/lib/utils/logger.c') diff --git a/src/charon/lib/utils/logger.c b/src/charon/lib/utils/logger.c index fdaeddff0..151fbfd50 100644 --- a/src/charon/lib/utils/logger.c +++ b/src/charon/lib/utils/logger.c @@ -132,11 +132,15 @@ static void prepend_prefix(private_logger_t *this, log_level_t loglevel, const c */ static int get_priority(log_level_t loglevel) { + if (loglevel & ERROR) + { + return LOG_AUTHPRIV|LOG_ERR; + } if (loglevel & AUDIT) { return LOG_AUTHPRIV|LOG_INFO; } - return LOG_DAEMON|LOG_DEBUG; + return LOG_AUTHPRIV|LOG_DEBUG; } /** -- cgit v1.2.3