Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug option logic error #194

Closed
coolsp opened this issue Dec 9, 2011 · 1 comment
Closed

debug option logic error #194

coolsp opened this issue Dec 9, 2011 · 1 comment

Comments

@coolsp
Copy link

coolsp commented Dec 9, 2011

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.

@indexzero
Copy link
Member

The debug option is set using --debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants