From df59d43586127674673f9db0807d43d04aac717c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Sat, 30 May 2015 13:46:12 +1000 Subject: [PATCH] tools: pass constant to logger instead of string On a few of our installations (namely CentOS), passing 'INFO' resulted in a silent loglevel. Use a logging constant instead. Cherry-picked from https://github.com/nodejs/io.js/commit/8606793999979829df002c2ab69235a05605fc4d Original commit metadata follows: Fixes: https://github.com/nodejs/build/issues/104 PR-URL: https://github.com/nodejs/io.js/pull/1842 Reviewed-By: Rod Vagg PR-URL: https://github.com/joyent/node/pull/25686 Reviewed-By: Julien Gilli --- tools/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test.py b/tools/test.py index 5d1d2774534..1f81da65539 100755 --- a/tools/test.py +++ b/tools/test.py @@ -1368,7 +1368,7 @@ def Main(): ch = logging.StreamHandler(sys.stdout) logger.addHandler(ch) - logger.setLevel('INFO') + logger.setLevel(logging.INFO) if options.logfile: fh = logging.FileHandler(options.logfile) logger.addHandler(fh)