Skip to content

Commit 8606793

Browse files
committed
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. Fixes: nodejs/build#104 PR-URL: #1842 Reviewed-By: Rod Vagg <[email protected]>
1 parent 2c686fd commit 8606793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ def Main():
13671367

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

0 commit comments

Comments
 (0)