mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Add a GUARD log domain, for use with new guards code
This commit is contained in:
parent
6a02f9f35a
commit
bf64564e37
@ -1177,7 +1177,7 @@ static const char *domain_list[] = {
|
||||
"GENERAL", "CRYPTO", "NET", "CONFIG", "FS", "PROTOCOL", "MM",
|
||||
"HTTP", "APP", "CONTROL", "CIRC", "REND", "BUG", "DIR", "DIRSERV",
|
||||
"OR", "EDGE", "ACCT", "HIST", "HANDSHAKE", "HEARTBEAT", "CHANNEL",
|
||||
"SCHED", NULL
|
||||
"SCHED", "GUARD", NULL
|
||||
};
|
||||
|
||||
/** Return a bitmask for the log domain for which <b>domain</b> is the name,
|
||||
|
@ -99,8 +99,10 @@
|
||||
#define LD_CHANNEL (1u<<21)
|
||||
/** Scheduler */
|
||||
#define LD_SCHED (1u<<22)
|
||||
/** Guard nodes */
|
||||
#define LD_GUARD (1u<<23)
|
||||
/** Number of logging domains in the code. */
|
||||
#define N_LOGGING_DOMAINS 23
|
||||
#define N_LOGGING_DOMAINS 24
|
||||
|
||||
/** This log message is not safe to send to a callback-based logger
|
||||
* immediately. Used as a flag, not a log domain. */
|
||||
|
Loading…
Reference in New Issue
Block a user