-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Further reduce INFO logging #8021
Comments
c.f. #8021 A lot of the code here is to change the `Completed 200 OK` logging to include the request URI so that we can drop the `Sending request...` log line. Some notes: 1. We won't log retries, which may be confusing considering the time taken log line includes retries and sleeps. 2. The `_send_request_with_optional_trailing_slash` will always be logged *without* the forward slash, even if it succeeded only with the forward slash.
Note that debian have changed the default log level for some particular handlers: https://salsa.debian.org/matrix-team/matrix-synapse/-/blob/debian/unstable/debian/log.yaml |
Sending device list update notif for ... tends to end up with very long log lines (at least on matrix.org). |
We now do a lot of log lines around:
which are probably not needed at |
We should take another crack at this, otherwise we may need to reduce log retention to uncomfortable levels on matrix.org. |
Totally dumb question but for my own edification: |
Good question Shay! Some notes:
This is true, but the flip side is that we often fail to remove the logging when we've tracked down the issues. It's quite easy to slowly accrue extra log lines over time, so it is worth going through and periodically seeing if there is anything that can be pruned. |
#12610 seems to have helped reduce our log sizes by 25-50% |
Some candidates that could be removed from default logging:
OPTIONS
request processing (~7% of log lines on jki.re)/sync
request processing (~7% of log lines on jki.re, ignoring INFO)Sending request
(~12% of log lines on jki.re)Received txn from
(~11% of log lines on jki.re), though we probably(?) want to somehow log how many PDUs the transaction contained in the processing request log line (or maybe have a generic "how many new events were persitsed" like we do fordbevts
)The text was updated successfully, but these errors were encountered: