Code review comment for lp:~thumper/juju-core/debug-log-api-client

Revision history for this message
Tim Penhey (thumper) wrote :

Please take a look.

https://codereview.appspot.com/85850043/diff/60001/state/api/client.go
File state/api/client.go (right):

https://codereview.appspot.com/85850043/diff/60001/state/api/client.go#newcode738
state/api/client.go:738: // Params for WatchDebugLog controls the
filtering of the log messages. If the
On 2014/04/10 07:04:18, rog wrote:
> // DebugLogParams holds parameters for WatchDebugLog that
> // control the filtering of the log messages.

> ?

> Thanks a lot for documenting these, BTW. It makes a big difference.

Done.

https://codereview.appspot.com/85850043/diff/60001/state/api/client.go#newcode747
state/api/client.go:747: // are set all modules are considered
included.
On 2014/04/10 07:04:18, rog wrote:
> s/ / /

> Does the inclusion of a logging module here imply all its sub-modules
too?

Yes, updated.

https://codereview.appspot.com/85850043/diff/60001/state/api/client.go#newcode755
state/api/client.go:755: // have been sent, the socket is closed.
On 2014/04/10 07:04:18, rog wrote:
> // If zero, there is no limit.
> ?

Updated.

https://codereview.appspot.com/85850043/diff/60001/state/api/client.go#newcode821
state/api/client.go:821: logger.Debugf("initial line: %s", line)
On 2014/04/10 07:04:18, rog wrote:
> Just realised - we probably want %q here so that we don't get a blank
line in
> the log.

Done.

https://codereview.appspot.com/85850043/diff/60001/state/api/client_test.go
File state/api/client_test.go (right):

https://codereview.appspot.com/85850043/diff/60001/state/api/client_test.go#newcode140
state/api/client_test.go:140: return &badReader{ioutil.NopCloser(junk),
err}, nil
On 2014/04/10 07:04:18, rog wrote:
> or ioutil.NopCloser(&badReader{err})

> then you can lose the ReadCloser field inside badReader.

Good call.

https://codereview.appspot.com/85850043/diff/60001/state/api/client_test.go#newcode195
state/api/client_test.go:195: func echoUrl(c *gc.C)
func(*websocket.Config) (io.ReadCloser, error) {
On 2014/04/10 07:04:18, rog wrote:
> s/echoUrl/echoURL/

> (Go convention is to capitalise either all or none of an acronym)

Done.

https://codereview.appspot.com/85850043/diff/60001/state/api/params/internal.go
File state/api/params/internal.go (right):

https://codereview.appspot.com/85850043/diff/60001/state/api/params/internal.go#newcode563
state/api/params/internal.go:563: // apiserver.
On 2014/04/10 07:04:18, rog wrote:
> s/apiserver/agent running the API server./
> ?

Done.

https://codereview.appspot.com/85850043/diff/60001/state/apiserver/client/client.go
File state/apiserver/client/client.go (right):

https://codereview.appspot.com/85850043/diff/60001/state/apiserver/client/client.go#newcode785
state/apiserver/client/client.go:785: // AgentVersion returns the
current version that the api server is running.
On 2014/04/10 07:04:18, rog wrote:
> s/api/API/

Done.

https://codereview.appspot.com/85850043/

« Back to merge proposal