summaryrefslogtreecommitdiffstats
path: root/src/lib/cc
diff options
context:
space:
mode:
authorJINMEI Tatuya <jinmei@isc.org>2013-01-30 22:31:10 +0100
committerJINMEI Tatuya <jinmei@isc.org>2013-01-30 22:31:10 +0100
commited8243603f26e46d8ae48f0fb4bac7545c5ff4c9 (patch)
tree431e472ff34a7a178eecc8ef8569b07dd9f202b8 /src/lib/cc
parent[2617] extend python cc module so it logs some events, and log local lname (diff)
downloadkea-ed8243603f26e46d8ae48f0fb4bac7545c5ff4c9.tar.xz
kea-ed8243603f26e46d8ae48f0fb4bac7545c5ff4c9.zip
[2617] log lname after establishing cc session; for debug aid
Diffstat (limited to 'src/lib/cc')
-rw-r--r--src/lib/cc/cc_messages.mes4
-rw-r--r--src/lib/cc/session.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/cc/cc_messages.mes b/src/lib/cc/cc_messages.mes
index 94b955a4da..b561784b1e 100644
--- a/src/lib/cc/cc_messages.mes
+++ b/src/lib/cc/cc_messages.mes
@@ -60,6 +60,10 @@ and its length (2 bytes) is counted in the total length.
There should be data representing the length of message on the socket, but it
is not there.
+% CC_LNAME_RECEIVED received local name: %1
+Debug message: the local module received its unique identifier (name)
+from msgq on completion of establishing the session with msgq.
+
% CC_NO_MESSAGE no message ready to be received yet
The program polled for incoming messages, but there was no message waiting.
This is a debug message which may happen only after CC_GROUP_RECEIVE.
diff --git a/src/lib/cc/session.cc b/src/lib/cc/session.cc
index 4455b68e30..1d3fac2c06 100644
--- a/src/lib/cc/session.cc
+++ b/src/lib/cc/session.cc
@@ -333,6 +333,7 @@ Session::establish(const char* socket_file) {
recvmsg(routing, msg, false);
impl_->lname_ = msg->get("lname")->stringValue();
+ LOG_DEBUG(logger, DBG_TRACE_DETAILED, CC_LNAME_RECEIVED).arg(impl_->lname_);
// At this point there's no risk of resource leak.
session_holder.clear();