Add LD_PROCESS as log domain.

See: https://bugs.torproject.org/28179
This commit is contained in:
Alexander Færøy
2018-09-10 15:15:45 +02:00
parent 31b3a6577c
commit 2b41b857bd
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -669,7 +669,8 @@ GENERAL OPTIONS
+
The currently recognized domains are: general, crypto, net, config, fs,
protocol, mm, http, app, control, circ, rend, bug, dir, dirserv, or, edge,
acct, hist, handshake, heartbeat, channel, sched, guard, consdiff, and dos.
acct, hist, handshake, heartbeat, channel, sched, guard, consdiff, dos, and
process.
Domain names are case-insensitive. +
+
For example, "`Log [handshake]debug [~net,~mm]info notice stdout`" sends
+1 -1
View File
@@ -1268,7 +1268,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", "GUARD", "CONSDIFF", "DOS", NULL
"SCHED", "GUARD", "CONSDIFF", "DOS", "PROCESS", NULL
};
/** Return a bitmask for the log domain for which <b>domain</b> is the name,
+3 -1
View File
@@ -107,8 +107,10 @@
#define LD_CONSDIFF (1u<<24)
/** Denial of Service mitigation. */
#define LD_DOS (1u<<25)
/** Processes */
#define LD_PROCESS (1u<<26)
/** Number of logging domains in the code. */
#define N_LOGGING_DOMAINS 26
#define N_LOGGING_DOMAINS 27
/** This log message is not safe to send to a callback-based logger
* immediately. Used as a flag, not a log domain. */