Skip to content

Commit

Permalink
add additivity=false to prevent double logging (#843)
Browse files Browse the repository at this point in the history
* add additivity=false to org.labkey.* loggers to prevent double logging

* remove additivity=false from non 'org.labkey' loggers

* additional logging refinements
  • Loading branch information
labkey-willm authored Jul 9, 2024
1 parent cca3413 commit d0999f5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions server/embedded/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ account managers so that we can coordinate edits with other customized copies of
<Logger name="org.labkey.api.data.Table" level="debug"/>
-->

<Logger name="org.labkey.api.data"/>
<Logger name="org.labkey.api.data" />

<Logger name="org.labkey.api.dataiterator"/>
<Logger name="org.labkey.api.dataiterator" />

<Logger name="org.labkey.docker">
<Logger name="org.labkey.docker" >
<level value="info"/>
</Logger>

Expand Down Expand Up @@ -278,9 +278,8 @@ account managers so that we can coordinate edits with other customized copies of
<AppenderRef ref="THREAD_DUMP"/>
</Logger>

<Logger name="org.labkey.core.admin.AdminController.ContentSecurityPolicyReportAction" additivity="false" level="warn">
<Logger name="org.labkey.core.admin.AdminController.ContentSecurityPolicyReportAction" level="warn">
<AppenderRef ref="CSP_REPORT" />
<AppenderRef ref="CONSOLE"/>
</Logger>

<!--
Expand All @@ -303,7 +302,6 @@ account managers so that we can coordinate edits with other customized copies of

<Logger name="org.labkey.audit.event" level="OFF">
<AppenderRef ref="LABKEY_AUDIT"/>
<AppenderRef ref="CONSOLE"/>
</Logger>

<!--
Expand Down

0 comments on commit d0999f5

Please sign in to comment.