-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Allow HTTP logging to be controlled #2246
Conversation
3e684d3
to
1f21773
Compare
Logger *log.Logger | ||
WriteTrace bool // Detailed logging of write path | ||
Logger *log.Logger | ||
HTTPAccessLogging bool // Log every HTTP access. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just make this something like EnableLogging
or LoggingEnabled
? This name is confusing when I don't see it in context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
I also increased the interval between querying the server during testing to 100ms. I originally suggested 10ms, may mean less strain on the Circle container, and it should not actually make a difference to how long tests take to run. |
@@ -239,6 +240,10 @@ func NewConfig() *Config { | |||
c.Snapshot.BindAddress = DefaultSnapshotBindAddress | |||
c.Snapshot.Port = DefaultSnapshotPort | |||
|
|||
c.Logging.HTTPAccess = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an HTTPAPI section. Should we put logging under that? This logging section is starting to feel out of place. Each are could have it's own logging flag now if we wanted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly. I could go either way. Would you agree to punting on that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Distinct PR, perhaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree w/ @corylanou.
Integration test output is so much easier to work with now, I do think we should merge this (or something close to it). |
efbd6e2
to
3db052a
Compare
Updated with change to HTTP logging flag. |
@otoolep I'm fine with it in current state. Our config might need some re-org at some point in the future anyway. I do agree this was very much needed. It was getting impossible to look through the failed CI output. Thanks! |
Also fixes issue #2245. |
Thanks @corylanou -- CircleCI runs already looking more stable on this branch. |
39fd77e
to
b02ca81
Compare
It would appear this should not have been committed.
Each of these tests relies on a write of only a few points. It simply should not take 60 seconds.
b02ca81
to
bb78898
Compare
ef413bd
to
50c1fa3
Compare
Fixes issue #2302 |
abbf99b
to
ef413bd
Compare
Closed in favour of #2320 |
This change also re-enables DQ testing, as well as remove a bogus
warn
statement.