]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Man page and help changes for new syntax
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 30 Jan 2023 10:39:11 +0000 (11:39 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 1 Feb 2023 09:08:19 +0000 (10:08 +0100)
pdns/recursordist/docs/manpages/rec_control.1.rst
pdns/recursordist/pdns_recursor.cc
pdns/recursordist/rec_channel_rec.cc
pdns/recursordist/syncres.hh

index 7b464ff21739e008b57292c2e8190379d12a92da..c78fccbbc7c6dd8626bf985ffa1d894cfb8b459d 100644 (file)
@@ -286,8 +286,12 @@ top-timeouts
     Shows the top-20 most active downstream timeout destinations.
     Statistics are over the last 'stats-ringbuffer-entries' queries.
 
-trace-regex *REGEX*
-    Emit resolution trace for matching queries. Empty regex to disable trace.
+trace-regex *REGEX* *FILE*
+    Emit resolution trace for matching queries. No arguments disables tracing.
+    Before version 4.9.0, there was no *FILE* argument, traces were always
+    written to the log. Starting with version 4.9.0, trace information is
+    written to the file specified, which may be ``-`` for the standard out
+    stream.
 
     Queries matching this regular expression will generate voluminous tracing
     output. Be aware that matches from the packet cache will still not generate
index 1d7ddd6ce000fbe0b706278ece539dd409304657..1dbf5bb171eac548b46f614a445963ffae4b340f 100644 (file)
@@ -838,8 +838,6 @@ static bool isEnabledForUDRs(const std::shared_ptr<std::vector<std::unique_ptr<F
 }
 #endif // HAVE_FSTRM
 
-const char* timestamp(const struct timeval& tv, char* buf, size_t sz);
-
 static void dumpTrace(const string& trace, const timeval& timev)
 {
   if (trace.empty()) {
index 36dcfb1db2f6bc16802cbb0816649b715f052bfe..2766c7cf5741e42f8faeb5c7778cd2589879b257 100644 (file)
@@ -2110,7 +2110,7 @@ RecursorControlChannel::Answer RecursorControlParser::getAnswer(int s, const str
             "set-carbon-server                set a carbon server for telemetry\n"
             "set-dnssec-log-bogus SETTING     enable (SETTING=yes) or disable (SETTING=no) logging of DNSSEC validation failures\n"
             "set-event-trace-enabled SETTING  set logging of event trace messages, 0 = disabled, 1 = protobuf, 2 = log file, 3 = both\n"
-            "trace-regex [regex]              emit resolution trace for matching queries (empty regex to clear trace)\n"
+            "trace-regex [regex file]         emit resolution trace for matching queries (no arguments clears tracing)\n"
             "top-largeanswer-remotes          show top remotes receiving large answers\n"
             "top-queries                      show top queries\n"
             "top-pub-queries                  show top queries grouped by public suffix list\n"
index 855439838621ac9fa6332fd19607091947c2d6c6..b500c143ff9b0c5daf9875484301ef3dc191112c 100644 (file)
@@ -922,6 +922,7 @@ uint64_t* pleaseGetPacketCacheHits();
 uint64_t* pleaseGetPacketCacheSize();
 void doCarbonDump(void*);
 bool primeHints(time_t now = time(nullptr));
+const char* timestamp(const struct timeval& tv, char* buf, size_t sz);
 
 struct WipeCacheResult
 {