Changed log level of response timings to INFO
This commit is contained in:
parent
0afa1d2eaa
commit
70575166a3
|
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Added
|
||||
|
||||
### Changed
|
||||
- [2020-06-16] Changed log level of response timings to INFO by [@lflare].
|
||||
|
||||
### Deprecated
|
||||
|
||||
|
|
|
@ -52,7 +52,9 @@ val Timer = Filter {
|
|||
val sanitizedUri = response.header("X-Uri")
|
||||
|
||||
// Log in TRACE
|
||||
LOGGER.trace("Request for $sanitizedUri completed in ${latency}ms")
|
||||
if (LOGGER.isInfoEnabled) {
|
||||
LOGGER.info("Request for $sanitizedUri completed in ${latency}ms")
|
||||
}
|
||||
|
||||
// Delete response header entirely
|
||||
response.header("X-Uri", null)
|
||||
|
|
Loading…
Reference in a new issue