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

Add http server error logger #1402

Merged
merged 1 commit into from
May 30, 2017
Merged

Add http server error logger #1402

merged 1 commit into from
May 30, 2017

Conversation

desa
Copy link
Contributor

@desa desa commented May 24, 2017

Fixes issue #1399

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated

@@ -68,7 +69,8 @@ func NewService(c Config, hostname string, l *log.Logger, li logging.Interface)
li,
c.SharedSecret,
),
logger: l,
logger: l,
httpServerLogger: li.NewStaticLevelLogger("[go-http]", log.LstdFlags, logging.ERROR),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should have the same name as the rest of the httpd service logging, "[httpd]". Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking that originally, but I wanted there to be a distinction between there being an error in the httpd service and there being an error in the http server.

The more I think of it,httpd is better.

@desa desa merged commit a76077c into master May 30, 2017
@desa desa deleted the md-issue#1399 branch May 30, 2017 15:23
@desa desa removed the in progress label May 30, 2017
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.

2 participants