Browse Source

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 8606793999
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>

PR-URL: https://github.com/joyent/node/pull/25686
Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
v0.10
Johan Bergström 10 years ago
committed by Alexis Campailla
parent
commit
df59d43586
  1. 2
      tools/test.py

2
tools/test.py

@ -1368,7 +1368,7 @@ def Main():
ch = logging.StreamHandler(sys.stdout) ch = logging.StreamHandler(sys.stdout)
logger.addHandler(ch) logger.addHandler(ch)
logger.setLevel('INFO') logger.setLevel(logging.INFO)
if options.logfile: if options.logfile:
fh = logging.FileHandler(options.logfile) fh = logging.FileHandler(options.logfile)
logger.addHandler(fh) logger.addHandler(fh)

Loading…
Cancel
Save