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

Implement config reload support for debug #503

Merged
merged 1 commit into from
Jun 6, 2017
Merged

Conversation

tylertreat
Copy link
Contributor

Add config reload support for debug option.

@nats-io/core

Add config reload support for `debug` option.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 91.256% when pulling 687a20b on debug_reload into 2b7ab35 on master.


// Apply the debug change by reconfiguring the server's logger.
func (d *debugOption) Apply(server *Server) {
server.ConfigureLogger()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can work for now but this pattern will have you repeatedly calling this for anything that touches the logger. Eventually will want to call this only once if needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be too hard to fix this, but I don't think it's worth it til we support a few options that reconfigure the logger.

@derekcollison derekcollison merged commit 04f46e5 into master Jun 6, 2017
@derekcollison derekcollison deleted the debug_reload branch June 6, 2017 20:12
@tylertreat tylertreat mentioned this pull request Jun 27, 2017
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants