apiserver/observer: Logging of Ping requests & replies #7612

Merged
merged 1 commit into from Jul 10, 2017

Conversation

Projects
None yet
4 participants
Contributor

mjs commented Jul 10, 2017

Description of change

To reduce log noise, ping requests and replies weren't being logged but
this makes it more difficult to debug ping related issues. Pings are
now logged to a separate logger (juju.apiserver.ping) and are logged
at TRACE. This means they aren't included by default but can be
observed when required.

QA steps

Bootstrap a controller and deploy some units. Wait a while and observe that no ping logs are seen and that other request/reply logging works as before.

Increase the log level on juju.apiserver.ping:

$ juju model-config -m controller logging-config='juju.apiserver.ping=TRACE;<root>=INFO;juju=DEBUG;unit=DEBUG'

Observe that juju.apiserver.ping logs are seen:

$ juju debug-log -m controller --replay | grep -i ping
...
machine-0: 23:29:03 TRACE juju.apiserver.ping <- [13] unit-ubuntu-0 {"request-id":161,"type":"Pinger","version":1,"request":"Ping","params":{}}
machine-0: 23:29:03 TRACE juju.apiserver.ping -> [13] unit-ubuntu-0 {"request-id":161,"response":{}}
...

Documentation changes

N.A.

Bug reference

N.A.

apiserver/observer: Logging of Ping requests & replies
To reduce log, noise ping requests and replies weren't being logged but
this makes it more difficult to debug ping related issues. Pings are
now logged to a separate logger (juju.apiserver.ping) and are logged
at TRACE. This means they aren't included by default but can be
observed when required.

@mjs mjs changed the base branch from develop to 2.2 Jul 10, 2017

Owner

wallyworld commented Jul 10, 2017

$$merge$$

Contributor

jujubot commented Jul 10, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 2341dc3 into juju:2.2 Jul 10, 2017

1 check passed

github-check-merge-juju Ran tests against PR. Use !!.*!! to request another build. IE, !!build!!, !!retry!!
Details

@mjs mjs deleted the mjs:ping-logging branch Jul 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment