nodejitsu/forever — Issue #194: debug option logic error
Author: coolsp
Created: 2011-12-09 15:56:21+00:00
State: open

I believe this code to be wrong (forever.js:276)
forever._debug = function () {
var debug = forever.config.get('debug');

if (!debug) {
forever.config.set('debug', true);
forever.log.add(winston.transports.File, {
level: 'silly',
filename: path.join(forever.config.get('root'), 'forever.debug.log')
});
}
};

If the debug option was already configured it will not set the winston log-level to 'silly' nor set the 'forever.debug.log' filename.
I believe the 'if(!debug)' should be removed and also the get/set of the 'debug' config-options.