So it is consistent with other autotest applications.
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
utils/test_importer.py | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/utils/test_importer.py b/utils/test_importer.py
index ab62d5e..00b912c 100755
--- a/utils/test_importer.py
+++ b/utils/test_importer.py
@@ -31,9 +31,16 @@ import logging, re, os, sys, optparse, compiler
from autotest_lib.frontend import setup_django_environment
from autotest_lib.frontend.afe import models
from autotest_lib.client.common_lib import control_data, utils
+from autotest_lib.client.common_lib import logging_config, logging_manager
+
+
+class TestImporterLoggingConfig(logging_config.LoggingConfig):
+ def configure_logging(self, results_dir=None, verbose=False):
+ super(TestImporterLoggingConfig, self).configure_logging(
+
use_console=True,
+ verbose=verbose)
-logging.basicConfig(level=logging.ERROR)
# Global
DRY_RUN = False
DEPENDENCIES_NOT_FOUND = set()
@@ -499,6 +506,10 @@ def main(argv):
default=os.path.join(os.path.dirname(__file__), '..'),
help='Autotest directory root')
options, args = parser.parse_args()
+
+ logging_manager.configure_logging(TestImporterLoggingConfig(),
+ verbose=options.verbose)
+
DRY_RUN = options.dry_run
if DRY_RUN:
logging.getLogger().setLevel(logging.WARN)
--
1.7.0.1
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest