diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-17 12:21:32 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-17 12:21:32 -0700 |
commit | 697408d658f185991521946a3a68c8f2ce5d108d (patch) | |
tree | eaa1c25dd3a2ddc742a9ef6abc46ccd49c985e22 /tools | |
parent | 6d16097a437b58c7e5451128658044998fa1da9d (diff) |
enable all debug logging in emcc -v
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py index 0d1cfffd..5571efea 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -454,9 +454,12 @@ EMSCRIPTEN_TEMP_DIR = configuration.EMSCRIPTEN_TEMP_DIR DEBUG_CACHE = configuration.DEBUG_CACHE CANONICAL_TEMP_DIR = configuration.CANONICAL_TEMP_DIR -level = logging.DEBUG if os.environ.get('EMCC_DEBUG') else logging.INFO -logging.basicConfig(level=level, format='%(levelname)-8s %(name)s: %(message)s') - +logging.basicConfig(format='%(levelname)-8s %(name)s: %(message)s') +def set_logging(): + logger = logging.getLogger() + logger.setLevel(logging.DEBUG if os.environ.get('EMCC_DEBUG') else logging.INFO) +set_logging() + if not EMSCRIPTEN_TEMP_DIR: EMSCRIPTEN_TEMP_DIR = tempfile.mkdtemp(prefix='emscripten_temp_', dir=configuration.TEMP_DIR) def clean_temp(): |