Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2377)

Issue 52850043: state/apiserver: log API conn setup/teardown

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by rog
Modified:
10 years, 3 months ago
Reviewers:
mp+201855, axw
Visibility:
Public.

Description

state/apiserver: log API conn setup/teardown This will make it easier to diagnose certain kinds of issue. In passing, we also change the error message returned when an AllWatcher is stopped, and perform some minor simplifications on API connection-related code. Both changes were prompted when trying to find out what was happening in bug #1269519. https://code.launchpad.net/~rogpeppe/juju-core/484-apiserver-log-connections/+merge/201855 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/apiserver: log API conn setup/teardown #

Total comments: 2

Patch Set 3 : state/apiserver: log API conn setup/teardown #

Patch Set 4 : state/apiserver: log API conn setup/teardown #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -48 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/apiserver/admin.go View 3 chunks +9 lines, -9 lines 0 comments Download
M state/apiserver/apiserver.go View 1 2 2 chunks +66 lines, -34 lines 0 comments Download
M state/megawatcher_internal_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/multiwatcher/multiwatcher.go View 1 2 chunks +2 lines, -3 lines 0 comments Download
M state/multiwatcher/multiwatcher_internal_test.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
10 years, 3 months ago (2014-01-15 21:47:35 UTC) #1
axw
LGTM https://codereview.appspot.com/52850043/diff/10006/state/apiserver/apiserver.go File state/apiserver/apiserver.go (right): https://codereview.appspot.com/52850043/diff/10006/state/apiserver/apiserver.go#newcode131 state/apiserver/apiserver.go:131: logger.Debugf("[%X] API connection from %s", n.id, req.RemoteAddr) I ...
10 years, 3 months ago (2014-01-16 09:00:32 UTC) #2
rog
Please take a look.
10 years, 3 months ago (2014-01-16 19:28:55 UTC) #3
rog
https://codereview.appspot.com/52850043/diff/10006/state/apiserver/apiserver.go File state/apiserver/apiserver.go (right): https://codereview.appspot.com/52850043/diff/10006/state/apiserver/apiserver.go#newcode131 state/apiserver/apiserver.go:131: logger.Debugf("[%X] API connection from %s", n.id, req.RemoteAddr) On 2014/01/16 ...
10 years, 3 months ago (2014-01-16 19:29:43 UTC) #4
rog
10 years, 3 months ago (2014-01-16 20:57:58 UTC) #5
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b