summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-30 03:15:23 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-30 03:15:23 +0000
commit0864d3f484f20fa5f2657a339dcb2e166bfa1a0f (patch)
treec2262e946cf5cff71985936166b987129b6962ae
parent57918e4902d3900db97e447f8752e503543fb278 (diff)
downloadtor-0864d3f484f20fa5f2657a339dcb2e166bfa1a0f.tar.gz
tor-0864d3f484f20fa5f2657a339dcb2e166bfa1a0f.zip
add in a 'notice' log level
svn:r1383
-rw-r--r--src/common/log.c1
-rw-r--r--src/common/log.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 293c827816..681e08f125 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -21,6 +21,7 @@ static INLINE const char *sev_to_string(int severity) {
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";
diff --git a/src/common/log.h b/src/common/log.h
index 87a74bafe3..4656a21963 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -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