aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-26 22:27:24 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-26 22:27:24 +0000
commitbf10a3c0f1d23d906d1044e9c99c08d921e70d5a (patch)
treeab25d191cc505ce593b95654b609921293411152 /src/common/log.c
parentab8bceb27acbf8b88480ac11b21e8ab7429c6d40 (diff)
downloadtor-bf10a3c0f1d23d906d1044e9c99c08d921e70d5a.tar
tor-bf10a3c0f1d23d906d1044e9c99c08d921e70d5a.tar.gz
finish enforcing the log convention
svn:r494
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 0b8a0bb38..f117b877e 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -20,13 +20,9 @@ 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_WARNING: return "warn";
case LOG_ERR: return "err";
- case LOG_CRIT: return "crit";
- case LOG_ALERT: return "alert";
- case LOG_EMERG: return "emerg";
- default: return "UNKNOWN";
+ default: assert(0); return "UNKNOWN";
}
}
@@ -167,3 +163,4 @@ void add_file_log(int loglevel, const char *filename)
add_stream_log(loglevel, filename, f);
logfiles->needs_close = 1;
}
+