]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Log the line received fomr rec_control 9493/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 21 Sep 2020 13:20:35 +0000 (15:20 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 21 Sep 2020 13:20:35 +0000 (15:20 +0200)
This can be handy to see what commands were issued to the recursor
when reviewing logs.

pdns/pdns_recursor.cc

index 09663e3f99fb9599d63674bb2cc9d7d7be6e7c8e..2cd4a86dd68e40e5ffd392cb7c418e236a3cf61b 100644 (file)
@@ -3628,6 +3628,7 @@ static void handleRCC(int fd, FDMultiplexer::funcparam_t& var)
     RecursorControlParser rcp;
     RecursorControlParser::func_t* command;
 
+    g_log << Logger::Notice << "Received rec_control command '" << msg << "' from control socket" << endl;
     string answer=rcp.getAnswer(msg, &command);
 
     // If we are inside a chroot, we need to strip