Skip to content

Commit df59d43

Browse files
jbergstroemorangemocha
authored andcommitted
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 8606793 Original commit metadata follows: Fixes: nodejs/build#104 PR-URL: #1842 Reviewed-By: Rod Vagg <rod@vagg.org> PR-URL: nodejs/node-v0.x-archive#25686 Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
1 parent c283c9b commit df59d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ def Main():
13681368

13691369
ch = logging.StreamHandler(sys.stdout)
13701370
logger.addHandler(ch)
1371-
logger.setLevel('INFO')
1371+
logger.setLevel(logging.INFO)
13721372
if options.logfile:
13731373
fh = logging.FileHandler(options.logfile)
13741374
logger.addHandler(fh)

0 commit comments

Comments
 (0)