Skip to content

Commit d998a65

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> Reviewed-By: Julien Gilli <julien.gilli@joyent.com> PR-URL: nodejs/node-v0.x-archive#25653
1 parent b48639b commit d998a65

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
@@ -1375,7 +1375,7 @@ def Main():
13751375

13761376
ch = logging.StreamHandler(sys.stdout)
13771377
logger.addHandler(ch)
1378-
logger.setLevel('INFO')
1378+
logger.setLevel(logging.INFO)
13791379
if options.logfile:
13801380
fh = logging.FileHandler(options.logfile)
13811381
logger.addHandler(fh)

0 commit comments

Comments
 (0)