mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
add in a 'notice' log level
svn:r1383
This commit is contained in:
parent
57918e4902
commit
0864d3f484
@ -21,6 +21,7 @@ static INLINE const char *sev_to_string(int severity) {
|
|||||||
switch(severity) {
|
switch(severity) {
|
||||||
case LOG_DEBUG: return "debug";
|
case LOG_DEBUG: return "debug";
|
||||||
case LOG_INFO: return "info";
|
case LOG_INFO: return "info";
|
||||||
|
case LOG_NOTICE: return "notice";
|
||||||
case LOG_WARN: return "warn";
|
case LOG_WARN: return "warn";
|
||||||
case LOG_ERR: return "err";
|
case LOG_ERR: return "err";
|
||||||
default: assert(0); return "UNKNOWN";
|
default: assert(0); return "UNKNOWN";
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#else
|
#else
|
||||||
#define LOG_DEBUG 0
|
#define LOG_DEBUG 0
|
||||||
#define LOG_INFO 1
|
#define LOG_INFO 1
|
||||||
|
#define LOG_NOTICE 2
|
||||||
#define LOG_WARN 3
|
#define LOG_WARN 3
|
||||||
#define LOG_ERR 4
|
#define LOG_ERR 4
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user