[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] add in a "notice" log level



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common

Modified Files:
	log.c log.h 
Log Message:
add in a 'notice' log level


Index: log.c
===================================================================
RCS file: /home/or/cvsroot/src/common/log.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- log.c	14 Mar 2004 15:50:00 -0000	1.33
+++ log.c	30 Mar 2004 03:15:23 -0000	1.34
@@ -21,6 +21,7 @@
   switch(severity) {
     case LOG_DEBUG:   return "debug";
     case LOG_INFO:    return "info";
+    case LOG_NOTICE:  return "notice";
     case LOG_WARN:    return "warn";
     case LOG_ERR:     return "err";
     default:          assert(0); return "UNKNOWN";

Index: log.h
===================================================================
RCS file: /home/or/cvsroot/src/common/log.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- log.h	17 Dec 2003 21:14:13 -0000	1.20
+++ log.h	30 Mar 2004 03:15:23 -0000	1.21
@@ -10,6 +10,7 @@
 #else
 #define LOG_DEBUG   0
 #define LOG_INFO    1
+#define LOG_NOTICE  2
 #define LOG_WARN    3
 #define LOG_ERR     4
 #endif