Browse Source

added a verbosity message to the startup of msgq that shows which unix domain socket file it is about to open
diff discussed on jabber, approved by jeremy


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@3110 e5f2f494-b856-4b98-b285-d166d9295462

Jelte Jansen 14 years ago
parent
commit
18cd6dd203
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/bin/msgq/msgq.py.in

+ 4 - 0
src/bin/msgq/msgq.py.in

@@ -142,6 +142,10 @@ class MsgQ:
 
 
     def setup_listener(self):
     def setup_listener(self):
         """Set up the listener socket.  Internal function."""
         """Set up the listener socket.  Internal function."""
+        if self.verbose:
+            sys.stdout.write("[b10-msgq] Setting up socket at %s\n" %
+                             self.socket_file)
+
         self.listen_socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
         self.listen_socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
         
         
         if os.path.exists(self.socket_file):
         if os.path.exists(self.socket_file):