Skip to content

Commit

Permalink
[#11990] Suppress MultiStageEngine query ClassCastException in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
intr3p1d committed Jan 23, 2025
1 parent cce82e7 commit f61a686
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions web/src/main/resources/log4j2-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,26 @@
</Properties>

<Appenders>
<Select>
<SpringProfile name="local">
<Console name="console" target="system_out">
<PatternLayout pattern="${console_message_pattern}"/>
</Console>
</SpringProfile>
<SpringProfile name="release">
<Console name="console" target="system_out">
<PatternLayout pattern="${file_message_pattern}"/>
</Console>
</SpringProfile>
<DefaultArbiter>
<Console name="console" target="system_out">
<PatternLayout pattern="${console_message_pattern}"/>
</Console>
</DefaultArbiter>
</Select>
<Console name="console" target="system_out">
<!-- Select Pattern -->
<Select>
<SpringProfile name="local">
<PatternLayout pattern="${console_message_pattern}"/>
</SpringProfile>
<SpringProfile name="release">
<PatternLayout pattern="${file_message_pattern}"/>
</SpringProfile>
<DefaultArbiter>
<PatternLayout pattern="${console_message_pattern}"/>
</DefaultArbiter>
</Select>
<Filters>
<ThresholdFilter level="error" onMatch="NEUTRAL" onMismatch="DENY"/>
<RegexFilter regex="(?s).*Cannot parse table name from query: SET useMultiStageEngine = true;.*"
onMatch="DENY"
onMismatch="NEUTRAL"/>
</Filters>
</Console>

<RollingFile name="rollingFile" filename="${logging_dir}/pinpoint-web.log"
filepattern="${logging_dir}/pinpoint-web-${rolling-date-format}-%i.log" >
Expand All @@ -71,6 +74,12 @@
</IfFileName>
</Delete>
</DefaultRolloverStrategy>
<Filters>
<ThresholdFilter level="error" onMatch="NEUTRAL" onMismatch="DENY"/>
<RegexFilter regex="(?s).*Cannot parse table name from query: SET useMultiStageEngine = true;.*"
onMatch="DENY"
onMismatch="NEUTRAL"/>
</Filters>
</RollingFile>

</Appenders>
Expand Down

0 comments on commit f61a686

Please sign in to comment.