Browse Source

[2582] Missing log message added

A leftover from logging switch, there was a call to write to stdout,
instead of logging.
Michal 'vorner' Vaner 12 years ago
parent
commit
fd3de5ebc7
2 changed files with 4 additions and 2 deletions
  1. 1 2
      src/bin/msgq/msgq.py.in
  2. 3 0
      src/bin/msgq/msgq_messages.mes

+ 1 - 2
src/bin/msgq/msgq.py.in

@@ -530,8 +530,7 @@ class MsgQ:
 
     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)

+ 3 - 0
src/bin/msgq/msgq_messages.mes

@@ -69,6 +69,9 @@ incompatible version of a module and message queue daemon.
 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.