]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2617] added a debug message on session establishment with lname. debug aid.
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 30 Jan 2013 21:45:04 +0000 (13:45 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 30 Jan 2013 21:45:04 +0000 (13:45 -0800)
src/bin/msgq/msgq.py.in
src/bin/msgq/msgq_messages.mes

index 68c18dc7926af5c3bba0c7e13d4e1c1cbbf75c87..daa56f3e7928150235322569acfaf9ee335a60ea 100755 (executable)
@@ -311,6 +311,9 @@ class MsgQ:
         lname = self.newlname()
         self.lnames[lname] = newsocket
 
+        logger.debug(TRACE_BASIC, MSGQ_SOCKET_REGISTERED, newsocket.fileno(),
+                     lname)
+
         if self.poller:
             self.poller.register(newsocket, select.POLLIN)
         else:
index 75e422790c8edbef20313cd79350b3ecd6041e64..96f173f8d16b5a7138e14fffb496dd6ea6bfb410 100644 (file)
@@ -41,6 +41,11 @@ This may be caused by a programmer error (one of the components sending invalid
 data) or possibly by incompatible version of msgq and the component (but that's
 unlikely, as the protocol is not changed often).
 
+% MSGQ_INVALID_CMD Received invalid command: %1
+An unknown command listed in the log has been received. It is ignored. This
+indicates either a programmer error (eg. a typo in the command name) or
+incompatible version of a module and message queue daemon.
+
 % MSGQ_LISTENER_FAILED Failed to initialize listener on socket file '%1': %2
 The message queue daemon tried to listen on a file socket (the path is in the
 message), but it failed. The error from the operating system is logged.
@@ -75,11 +80,6 @@ the corresponding socket is dropped.
 % MSGQ_RECV_HDR Received header: %1
 Debug message. This message includes the whole routing header of a packet.
 
-% MSGQ_INVALID_CMD Received invalid command: %1
-An unknown command listed in the log has been received. It is ignored. This
-indicates either a programmer error (eg. a typo in the command name) or
-incompatible version of a module and message queue daemon.
-
 % MSGQ_SEND_ERR Error while sending to socket %1: %2
 There was a low-level error when sending data to a socket. The error is logged
 and the corresponding socket is dropped.
@@ -87,6 +87,11 @@ and the corresponding socket is dropped.
 % MSGQ_SHUTDOWN Stopping Msgq
 Debug message. The message queue is shutting down.
 
+% MSGQ_SOCKET_REGISTERED Registered a socket descriptor %1 with lname %2
+Debug message. The msgq daemon accepted a session request on the
+shown descriptor of socket and assigned a unique identifier (lname)
+for the client on that socket.
+
 % MSGQ_SOCK_CLOSE Closing socket fd %1
 Debug message. Closing the mentioned socket.