Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Various logging improvements in the apiserver #6432
Conversation
mjs
added some commits
Oct 12, 2016
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
jujubot
merged commit 16e0b6f
into
juju:master
Oct 12, 2016
mjs
deleted the
mjs:logging-tweaks
branch
Oct 12, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mjs commentedOct 12, 2016
•
Edited 1 time
-
mjs
Oct 12, 2016
This change contains a bunch of small improvements to the logs generated by API connections and logins. These are all things that have been annoying me for a long time. The goal was to remove unnecessary noise, use more appropriate log levels and provide more useful information.
The logs for a typical client API connection and request now look like:
The start of an agent connection now looks like:
rpc: Reduce codec close error log level
It's quite common for close of the codec to return a "broken pipe"
error. It happens for even API request from the client because the
client typically closing the connection after making a single API
request. There is no need to include these at INFO every time.
apiserver/observer: Reduce API conn log levels
The start and end of every API connection was being logged at INFO. This
is not generally useful to the average user and is strange when view
logs at INFO because all you see is "API connection from ... ", followed
by "API connection terminated..." with nothing in between.
These messages have been lowered to DEBUG so that they're at the same
level as the other API handling log output.
apiserver: Stop logging host ports
For some reason we are logging the API server host ports as part of
every login. This isn't useful and just adds noise to the logs.
apiserver: Rearrange login logs
Removed logging during model validation/state lookup in favour of more
dense log lines post Login. This results in one less log line for user
logins and more informative log lines for all login types.
apiserver: Removed debuglog handler log output
It's not terribly important to know that this handler has started.
QA
Examined API server logs to see expected, improved log output.