aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index 628a9ecc7..9e26ba3b0 100755
--- a/configure.py
+++ b/configure.py
@@ -1634,6 +1634,9 @@ def main(argv = None):
if argv is None:
argv = sys.argv
+ logging.basicConfig(stream = sys.stdout,
+ format = '%(levelname) 7s: %(message)s')
+
options = process_command_line(argv[1:])
def log_level():
@@ -1643,9 +1646,7 @@ def main(argv = None):
return logging.WARNING
return logging.INFO
- logging.basicConfig(stream = sys.stdout,
- format = '%(levelname) 7s: %(message)s',
- level = log_level())
+ logging.getLogger().setLevel(log_level())
logging.debug('%s invoked with options "%s"' % (
argv[0], ' '.join(argv[1:])))