A leftover from logging switch, there was a call to write to stdout,
instead of logging.
def shutdown(self):
"""Stop the MsgQ master."""
- if self.verbose:
- sys.stdout.write("[b10-msgq] Stopping the server.\n")
+ logger.debug(TRACE_START, MSGQ_SHUTDOWN)
self.listen_socket.close()
if os.path.exists(self.socket_file):
os.remove(self.socket_file)
There was a low-level error when sending data to a socket. The error is logged
and the corresponding socket is dropped.
+% MSGQ_SHUTDOWN Stopping Msgq
+Debug message. The message queue is shutting down.
+
% MSGQ_SOCK_CLOSE Closing socket fd %1
Debug message. Closing the mentioned socket.