mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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 <rod@vagg.org> Reviewed-By: Julien Gilli <julien.gilli@joyent.com> PR-URL: https://github.com/joyent/node/pull/25653
This commit is contained in:
1 parent
b48639befd
commit
d998a65058
1 file changed
+1
-1
+1
-1
@@ -1375,7 +1375,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)
|
||||
|
||||
Reference in new issue
Block a user