Browse Source

[213] Add missing log message

Michal 'vorner' Vaner 13 years ago
parent
commit
f337180ad8

+ 3 - 0
src/bin/bind10/bind10_messages.mes

@@ -149,6 +149,9 @@ The boss module is sending a SIGKILL signal to the given process.
 % BIND10_SEND_SIGTERM sending SIGTERM to %1 (PID %2)
 The boss module is sending a SIGTERM signal to the given process.
 
+% BIND10_SETUID setting UID to %1
+The boss switches the user it runs as to the given UID.
+
 % BIND10_SHUTDOWN stopping the server
 The boss process received a command or signal telling it to shut down.
 It will send a shutdown command to each process. The processes that do

+ 5 - 1
src/lib/python/isc/bind10/special_component.py

@@ -18,6 +18,10 @@ import isc.bind10.sockcreator
 from bind10_config import LIBEXECDIR
 import os
 import posix
+import isc.log
+from isc.log_messages.bind10_messages import *
+
+logger = isc.log.Logger("boss")
 
 class SockCreator(BaseComponent):
     """
@@ -122,7 +126,7 @@ class SetUID(BaseComponent):
 
     def _start_internal(self):
         if self.uid is not None:
-            # TODO: log
+            logger.info(BIND10_SETUID, self.uid)
             posix.setuid(self.uid)
 
     def _stop_internal(self): pass