-
Notifications
You must be signed in to change notification settings - Fork 947
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
Labels
Comments
The debug option is set using |
This was referenced Apr 9, 2022
This was referenced Apr 16, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: