diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2018-12-13 12:03:09 -0500 |
---|---|---|
committer | David Bradford <david.bradford@mongodb.com> | 2019-08-01 17:02:17 -0400 |
commit | 74f9c3bbd17e2e057f2def58adf341628a94f83a (patch) | |
tree | 34afaf3a15c6237974b46eae191bc696de0065ac /buildscripts/scons_cache_prune.py | |
parent | 4a0def0129ae5aa6c8ea951b5c452c8938cf4d83 (diff) | |
download | mongo-74f9c3bbd17e2e057f2def58adf341628a94f83a.tar.gz |
SERVER-38395 Python global logger is polluted when importing certain resmokelib modules
(cherry picked from commit acefbb86080b63c847700c764d08c5d8bcd9c58f)
Diffstat (limited to 'buildscripts/scons_cache_prune.py')
-rw-r--r-- | buildscripts/scons_cache_prune.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildscripts/scons_cache_prune.py b/buildscripts/scons_cache_prune.py index da60ab8efa4..dc6b520d6da 100644 --- a/buildscripts/scons_cache_prune.py +++ b/buildscripts/scons_cache_prune.py @@ -17,7 +17,6 @@ import logging import os import shutil -logging.basicConfig(level=logging.INFO) LOGGER = logging.getLogger("scons.cache.prune.lru") # type: ignore GIGBYTES = 1024 * 1024 * 1024 @@ -106,6 +105,9 @@ def prune_cache(cache_path, cache_size_gb, clean_ratio): def main(): """Execute Main entry.""" + + logging.basicConfig(level=logging.INFO) + parser = argparse.ArgumentParser(description="SCons cache pruning tool") parser.add_argument("--cache-dir", "-d", default=None, help="path to the cache directory.") |