summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorajs <ajs>2004-12-10 22:43:17 +0000
committerajs <ajs>2004-12-10 22:43:17 +0000
commit3378d2099440cb3a14dc7531a3221d4140e186e2 (patch)
tree098f20625c9a7cd329c68865502da0d1a23ccd79
parentc3324c63b5f6b39c5f63329a679628b80b63e1bc (diff)
2004-12-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* log.c: (zlog_signal,_zlog_assert_failed) Change logging level back to LOG_ERR instead of LOG_EMERG.
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/log.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index a4f79deb..4c8e3786 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * log.c: (zlog_signal,_zlog_assert_failed) Change logging level back to
+ LOG_ERR instead of LOG_EMERG.
+
2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* log.c: (hex_append) No need to include this function if
diff --git a/lib/log.c b/lib/log.c
index ec958645..1be1c0b0 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -1,5 +1,5 @@
/*
- * $Id: log.c,v 1.19 2004/12/09 17:26:31 ajs Exp $
+ * $Id: log.c,v 1.20 2004/12/10 22:43:17 ajs Exp $
*
* Logging of zebra
* Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro
@@ -290,7 +290,7 @@ zlog_signal(int signo, const char *action)
*s++ = '\n';
/* N.B. implicit priority is most severe */
-#define PRI LOG_EMERG
+#define PRI LOG_ERR
#define DUMP(FP) write(fileno(FP),buf,s-buf);
if (!zlog_default)
@@ -472,7 +472,7 @@ _zlog_assert_failed (const char *assertion, const char *file,
{
zlog_err("Assertion `%s' failed in file %s, line %u, function %s",
assertion,file,line,(function ? function : "?"));
- zlog_backtrace(LOG_EMERG);
+ zlog_backtrace(LOG_ERR);
abort();
}