add two logging-related options to autoserv:
--verbose sets the console to DEBUG level output (this is added to autotest client as well)
--no_console_prefix disables the logging prefix entirely on the console
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3301 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/client_logging_config.py b/client/bin/client_logging_config.py
index bdf1540..2a48480 100644
--- a/client/bin/client_logging_config.py
+++ b/client/bin/client_logging_config.py
@@ -9,8 +9,9 @@
self._add_file_handlers_for_all_levels(log_dir, log_name)
- def configure_logging(self, results_dir=None):
- super(ClientLoggingConfig, self).configure_logging(use_console=True)
+ def configure_logging(self, results_dir=None, verbose=False):
+ super(ClientLoggingConfig, self).configure_logging(use_console=True,
+ verbose=verbose)
if results_dir:
log_dir = os.path.join(results_dir, 'debug')