Skip to content

Commit

Permalink
Remove annoying logging caused by netty
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Dec 28, 2023
1 parent 29b9b43 commit bff40a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions loader/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<MarkerFilter marker="FORGEMOD" onMatch="${sys:forge.logging.marker.forgemod:-ACCEPT}" onMismatch="NEUTRAL"/>
<MarkerFilter marker="LOADING" onMatch="${sys:forge.logging.marker.loading:-ACCEPT}" onMismatch="NEUTRAL"/>
<MarkerFilter marker="CORE" onMatch="${sys:forge.logging.marker.core:-ACCEPT}" onMismatch="NEUTRAL"/>

<!-- Netty reflects into JDK internals, and it's causing useless DEBUG-level error stacktraces. We just ignore them -->
<RegexFilter regex="^direct buffer constructor: unavailable$" onMatch="DENY" onMismatch="NEUTRAL" />
<RegexFilter regex="^jdk\.internal\.misc\.Unsafe\.allocateUninitializedArray\(int\): unavailable$" onMatch="DENY" onMismatch="NEUTRAL" />
</filters>
<Appenders>
<TerminalConsole name="Console">
Expand Down

0 comments on commit bff40a2

Please sign in to comment.