aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-03 10:33:55 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-03 10:33:55 -0700
commitac2e339f7c33cd96da165405e8da97ead56a3fff (patch)
treec4276b17e3c8eb3804066e4838ff78fd486a0a67
parentd6a6004ff35999045f61f2f05af09f4007d60ac1 (diff)
tweak some logging levels
-rwxr-xr-xemcc4
-rw-r--r--tools/shared.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/emcc b/emcc
index 0b973568..5d63a46c 100755
--- a/emcc
+++ b/emcc
@@ -112,7 +112,7 @@ EMCC_CFLAGS = os.environ.get('EMCC_CFLAGS') # Additional compiler flags that we
logging.debug('invocation: ' + ' '.join(sys.argv) + (' + ' + EMCC_CFLAGS if EMCC_CFLAGS else ''))
if EMCC_CFLAGS: sys.argv.append(EMCC_CFLAGS)
-if DEBUG and LEAVE_INPUTS_RAW: logging.error('leaving inputs raw')
+if DEBUG and LEAVE_INPUTS_RAW: logging.warning('leaving inputs raw')
stdout = PIPE if not DEBUG else None # suppress output of child processes
stderr = PIPE if not DEBUG else None # unless we are in DEBUG mode
@@ -854,7 +854,7 @@ try:
newargs[i] = ''
elif newargs[i] == '--clear-cache':
newargs[i] = ''
- logging.info('clearing cache')
+ logging.warning('clearing cache')
shared.Cache.erase()
sys.exit(0)
elif newargs[i] == '--save-bc':
diff --git a/tools/shared.py b/tools/shared.py
index 42eb50c8..f451ee30 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -322,7 +322,7 @@ def check_sanity(force=False):
except Exception, e:
reason = 'unknown: ' + str(e)
if reason:
- logging.info('(Emscripten: %s, clearing cache)' % reason)
+ logging.warning('(Emscripten: %s, clearing cache)' % reason)
Cache.erase()
# some warning, not fatal checks - do them even if EM_IGNORE_SANITY is on
@@ -430,7 +430,7 @@ class Configuration:
try:
self.TEMP_DIR = TEMP_DIR
except NameError:
- logging.info('TEMP_DIR not defined in ~/.emscripten, using /tmp')
+ logging.debug('TEMP_DIR not defined in ~/.emscripten, using /tmp')
self.TEMP_DIR = '/tmp'
self.CANONICAL_TEMP_DIR = os.path.join(self.TEMP_DIR, 'emscripten_temp')