From 59fd85c6289c2982e06457629e268b5d1fdd5fff Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Fri, 4 Sep 2020 08:45:34 -0500 Subject: [PATCH] Change default logging to warn --- src/main/kotlin/mdnet/base/server/ImageServer.kt | 2 +- src/main/resources/logback.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/mdnet/base/server/ImageServer.kt b/src/main/kotlin/mdnet/base/server/ImageServer.kt index 77333ad..b7ab581 100644 --- a/src/main/kotlin/mdnet/base/server/ImageServer.kt +++ b/src/main/kotlin/mdnet/base/server/ImageServer.kt @@ -234,7 +234,7 @@ class ImageServer( val lastModified = mdResponse.header("Last-Modified") if (!contentType.isImageMimetype()) { - LOGGER.trace { "Upstream query for $sanitizedUri returned bad mimetype $contentType" } + LOGGER.warn { "Upstream query for $sanitizedUri returned bad mimetype $contentType" } mdResponse.close() return Response(Status.INTERNAL_SERVER_ERROR) } diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 126b3d3..df0d417 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -1,7 +1,7 @@ - ${file-level:-TRACE} + ${file-level:-WARN} log/latest.log