From: Mukund Sivaraman Date: Thu, 21 Jun 2012 09:18:17 +0000 (+0530) Subject: [2025] Log a message when a notify is received by b10-auth X-Git-Tag: trac2351_base~213^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca4a4409f4e7af3bc11eec3d6d40c6a682f17678;p=thirdparty%2Fkea.git [2025] Log a message when a notify is received by b10-auth --- diff --git a/src/bin/auth/auth_messages.mes b/src/bin/auth/auth_messages.mes index 9ac2c499ef..0805d855fd 100644 --- a/src/bin/auth/auth_messages.mes +++ b/src/bin/auth/auth_messages.mes @@ -110,6 +110,9 @@ look into the cause and address the issue. The log message includes the client's address (and port), and the error message sent from the lower layer that detects the failure. +% AUTH_PROCESS_NOTIFY processing incoming NOTIFY for zone name %1, zone class %2 +This is a debug message reporting that an incoming NOTIFY is being processed. + % AUTH_NOTIFY_QUESTIONS invalid number of questions (%1) in incoming NOTIFY This debug message is logged by the authoritative server when it receives a NOTIFY packet that contains zero or more than one question. (A valid diff --git a/src/bin/auth/auth_srv.cc b/src/bin/auth/auth_srv.cc index 2a47c38822..f06f0238cb 100644 --- a/src/bin/auth/auth_srv.cc +++ b/src/bin/auth/auth_srv.cc @@ -828,6 +828,9 @@ AuthSrvImpl::processNotify(const IOMessage& io_message, Message& message, return (false); } + LOG_DEBUG(auth_logger, DBG_AUTH_DETAIL, AUTH_PROCESS_NOTIFY) + .arg(question->getName().toText()).arg(question->getClass().toText()); + const string remote_ip_address = io_message.getRemoteEndpoint().getAddress().toText(); static const string command_template_start =