]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add "PT" log domain.
authorAlexander Færøy <ahf@torproject.org>
Thu, 22 Nov 2018 18:00:21 +0000 (19:00 +0100)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Dec 2018 21:39:28 +0000 (16:39 -0500)
See: https://bugs.torproject.org/28179

doc/tor.1.txt
src/lib/log/log.c
src/lib/log/log.h

index 42fe8f1bccdf81b1380059a4ca9a51dd4e89bc86..1984b05d64cbffdb4a4c5e3eb6998bd119465813 100644 (file)
@@ -669,8 +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, dos, and
-    process.
+    acct, hist, handshake, heartbeat, channel, sched, guard, consdiff, dos,
+    process, and pt.
     Domain names are case-insensitive. +
  +
     For example, "`Log [handshake]debug [~net,~mm]info notice stdout`" sends
index 861de6e963af998c9c42f6527787af6bc3442746..2c25ddf1aa9273284617fb485b741383f620b2b3 100644 (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", "PROCESS", NULL
+  "SCHED", "GUARD", "CONSDIFF", "DOS", "PROCESS", "PT", NULL
 };
 
 /** Return a bitmask for the log domain for which <b>domain</b> is the name,
index 1cd6087eb8eac4836d47b1351fadf5c5d9e11861..c8820ee0371aa025567a12a4246d752667ce95a5 100644 (file)
 #define LD_DOS       (1u<<25)
 /** Processes */
 #define LD_PROCESS   (1u<<26)
+/** Pluggable Transports. */
+#define LD_PT        (1u<<27)
 /** Number of logging domains in the code. */
-#define N_LOGGING_DOMAINS 27
+#define N_LOGGING_DOMAINS 28
 
 /** This log message is not safe to send to a callback-based logger
  * immediately.  Used as a flag, not a log domain. */