mirror of
https://github.com/appium/appium.git
synced 2026-02-07 01:58:55 -06:00
Merge pull request #3426 from 0x1mason/3194
Added hack force debug messages to stdout. Fix for #3194
This commit is contained in:
@@ -49,6 +49,12 @@ module.exports.init = function (args) {
|
||||
logger.stripColors = args.logNoColors;
|
||||
logger.appiumLoglevel = loglevel;
|
||||
|
||||
// 8/19/14 this is a hack to force Winston to print debug messages to stdout rather than stderr.
|
||||
// TODO: remove this if winston provides an API for directing streams.
|
||||
if (levels[loglevel] === levels.debug) {
|
||||
logger.debug = function (msg) { logger.info('[debug] ' + msg); };
|
||||
}
|
||||
|
||||
var fileLogger = null;
|
||||
if (args.log) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user