Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pretty-print audit log response time
This commit improves the request-response time printing during tracing the audit log. Before, the response time has been truncated to microseconds. However, when a request-response takes about 1 seconds the printed time may be 1.123567s. This commit fixes this by truncating the printed time to 10s of milliseconds resp. 10 of microseconds. This ensures that the audit log shows request-response times like 1.15s or 256.99ms. When dealing with times smaller than 1 millisecond we keep the old behavior to show times like 17μs or 117μs. I haven't observed sub-microsecond response times, yet - not even on localhost (local network interface roundtrip).
- Loading branch information