You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In properties file I have configured 2 different named handlers, for very specific logging categories.
In dev mode the log in these categories are working fine and directed toward the right file handler.
When an hot-reload is performed I see the log lines duplicated, and each time a new hot-reload is performed there is one more copy of the log lines pushed to the files.
This might be related to the named log handler being registered multiple times on hot reload, I'm guessing, because console log and the general quarkus.log.file.path do not get duplicates traces after several hot reloads.
Expected behavior
Hot reload should reset logging configuration, and not duplicate log lines in named handler files
Actual behavior
After hot reload duplicate log lines are added to named handler log files, and the duplication factor is the number of live reloads performed.
To Reproduce
Steps to reproduce the behavior:
Configure named log handler
Append to the matching log topic/categories
See log lines appears one at a time
Perform hot reload, changing a blank line in source or something meaningless
See log lines appears duplicate
Perform another hot reload
See log lines appear 3 times each
Configuration
# Add your application.properties here, if applicable.#Loggingquarkus.log.level=INFO
quarkus.log.category."com.darva.urlshortener".level=DEBUG
# Configure a named handler that logs to Activite file
quarkus.log.handler.file."ACTIVITE".enable=true
quarkus.log.handler.file."ACTIVITE".path=../logs/activite.log
quarkus.log.handler.file."ACTIVITE".format=%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX};%X{raisonsociale};%X{userroles};%X{sessionId};%X{posteId};%X{userId};%X{versionApp};%X{service};SERVICE-NAME;%X{numclient};%X{transactionId};%X{versionConfApp};%X{versionConfTech};%X{codePro};%X{codeAbo};%m%n
quarkus.log.category."com.company.log.ActivityTracer".level=INFO
quarkus.log.category."com.company.log.ActivityTracer".handlers=ACTIVITE
# Configure a named handler that logs to Exploitation file
quarkus.log.handler.file."EXPLOITATION".enable=true
quarkus.log.handler.file."EXPLOITATION".path=../logs/exploitation.log
quarkus.log.handler.file."EXPLOITATION".format=%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX};%X{raisonsociale};%X{userroles};%X{sessionId};%X{posteId};%X{userId};%X{versionApp};%X{service};SERVICE-NAME;%X{numclient};%X{transactionId};%X{versionConfApp};%X{versionConfTech};%X{codePro};%X{codeAbo};%p;%C;%m;%M%n
quarkus.log.category."com.company.log.ExploitationTracer".level=ERROR
quarkus.log.category."com.company.log.ExploitationTracer".handlers=EXPLOITATION
# General log goes to Application filequarkus.log.file.enable=true
quarkus.log.file.path=../logs/application.log
quarkus.log.file.format=%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX};%X{raisonsociale};%X{userroles};%X{sessionId};%X{posteId};%X{userId};%X{versionApp};%X{service};SERVICE-NAME;%X{numclient};%X{transactionId};%X{versionConfApp};%X{versionConfTech};%X{codePro};%X{codeAbo};%p;%C;%m;%M%nquarkus.log.file.level=DEBUG
quarkus.log.min-level=DEBUG
Environment (please complete the following information):
Output of uname -a or ver: Darwin ***********.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
Output of java -version: java version "11.0.7" 2020-04-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.7+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.7+8-LTS, mixed mode)
GraalVM version (if different from Java):
Quarkus version or git rev: 1.5.2.Final
Build tool (ie. output of mvnw --version or gradlew --version): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Additional context
This all happened in dev mode, running the application using either mvn quarkus:dev or ./mvnw quarkus:dev. Not very critical to me either, as hot reload is only useful for dev environment.
The text was updated successfully, but these errors were encountered:
Describe the bug
In properties file I have configured 2 different named handlers, for very specific logging categories.
In dev mode the log in these categories are working fine and directed toward the right file handler.
When an hot-reload is performed I see the log lines duplicated, and each time a new hot-reload is performed there is one more copy of the log lines pushed to the files.
This might be related to the named log handler being registered multiple times on hot reload, I'm guessing, because console log and the general
quarkus.log.file.path
do not get duplicates traces after several hot reloads.Expected behavior
Hot reload should reset logging configuration, and not duplicate log lines in named handler files
Actual behavior
After hot reload duplicate log lines are added to named handler log files, and the duplication factor is the number of live reloads performed.
To Reproduce
Steps to reproduce the behavior:
Configuration
Environment (please complete the following information):
uname -a
orver
: Darwin ***********.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64java -version
: java version "11.0.7" 2020-04-14 LTSJava(TM) SE Runtime Environment 18.9 (build 11.0.7+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.7+8-LTS, mixed mode)
mvnw --version
orgradlew --version
): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)Additional context
This all happened in dev mode, running the application using either
mvn quarkus:dev
or./mvnw quarkus:dev
. Not very critical to me either, as hot reload is only useful for dev environment.The text was updated successfully, but these errors were encountered: