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() + getBodyAsString(responseContext))
|
||||
}
|
||||
else if (log.isDebugEnabled) {
|
||||
log.debug("Result of request ${geRequestUrl(requestContext)}: ${getResponseStatus(responseContext)}"
|
||||
else if (log.isInfoEnabled) {
|
||||
log.info("Result of request ${geRequestUrl(requestContext)}: ${getResponseStatus(responseContext)}"
|
||||
+ System.lineSeparator() + getHeadersAsString(responseContext)
|
||||
+ System.lineSeparator() + getBodyAsString(responseContext))
|
||||
}
|
||||
|
|
|
@ -3,3 +3,9 @@ quarkus.http.port=5555
|
|||
# enable https support in native builds
|
||||
quarkus.native.enable-https-url-handler=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>
|
||||
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>DEBUG</level>
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
|
|
Loading…
Reference in New Issue