Browse Source

[1271] Enable full debugging on bind10 when -v is enabled

Although -v was passed through to other processes, it did not affect
the main bind10 process.  -v now enables full debugging on bind10
when it starts up.
Stephen Morris 13 years ago
parent
commit
25e2cd129a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/bin/bind10/bind10_src.py.in

+ 4 - 0
src/bin/bind10/bind10_src.py.in

@@ -254,6 +254,10 @@ class BoB:
         self.pwait_time = pwait_time
         self.pwait_time = pwait_time
         self.sockcreator = None
         self.sockcreator = None
 
 
+        # If -v was set, enable full debug logging.
+        if self.verbose:
+            logger.set_severity("DEBUG", 99)
+
     def config_handler(self, new_config):
     def config_handler(self, new_config):
         # If this is initial update, don't do anything now, leave it to startup
         # If this is initial update, don't do anything now, leave it to startup
         if not self.runnable:
         if not self.runnable: