1
0
Fork 1
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-01-19 02:48:37 +00:00

Changed log level of response timings to INFO

This commit is contained in:
Amos Ng 2020-06-16 09:55:53 +08:00
parent 0afa1d2eaa
commit 70575166a3
No known key found for this signature in database
GPG key ID: 89086414F634D123
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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)