Logging REST responses now on INFO level, but set application log level to WARN
This commit is contained in:
parent
cd15dd01e2
commit
3e872514d6
|
@ -28,8 +28,8 @@ class LoggingFilter : ContainerResponseFilter {
|
||||||
+ System.lineSeparator() + getHeadersAsString(responseContext)
|
+ System.lineSeparator() + getHeadersAsString(responseContext)
|
||||||
+ System.lineSeparator() + getBodyAsString(responseContext))
|
+ System.lineSeparator() + getBodyAsString(responseContext))
|
||||||
}
|
}
|
||||||
else if (log.isDebugEnabled) {
|
else if (log.isInfoEnabled) {
|
||||||
log.debug("Result of request ${geRequestUrl(requestContext)}: ${getResponseStatus(responseContext)}"
|
log.info("Result of request ${geRequestUrl(requestContext)}: ${getResponseStatus(responseContext)}"
|
||||||
+ System.lineSeparator() + getHeadersAsString(responseContext)
|
+ System.lineSeparator() + getHeadersAsString(responseContext)
|
||||||
+ System.lineSeparator() + getBodyAsString(responseContext))
|
+ System.lineSeparator() + getBodyAsString(responseContext))
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,4 +2,10 @@ quarkus.http.port=5555
|
||||||
|
|
||||||
# enable https support in native builds
|
# enable https support in native builds
|
||||||
quarkus.native.enable-https-url-handler=true
|
quarkus.native.enable-https-url-handler=true
|
||||||
quarkus.native.enable-all-security-services=true
|
quarkus.native.enable-all-security-services=true
|
||||||
|
|
||||||
|
quarkus.log.level=WARN
|
||||||
|
# FinTS messages are logged on DEBUG
|
||||||
|
quarkus.log.category."net.dankito.banking.fints.log.MessageLogCollector".level=INFO
|
||||||
|
# REST responses are logged on INFO
|
||||||
|
quarkus.log.category."net.dankito.banking.fints.rest.LoggingFilter".level=WARN
|
|
@ -25,7 +25,7 @@
|
||||||
</encoder>
|
</encoder>
|
||||||
|
|
||||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||||
<level>DEBUG</level>
|
<level>INFO</level>
|
||||||
</filter>
|
</filter>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue