Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(logback): incorrect zone id format in logback config #843

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
import java.io.FileNotFoundException;
import java.net.MalformedURLException;
import java.net.URL;
import java.time.zone.ZoneRulesException;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.util.logging.Logger;

Expand Down Expand Up @@ -113,7 +115,8 @@ public static void initLogging(URL url, boolean installJULBridge) {
SLF4JBridgeHandler.install();

}
} catch (JoranException e) {
} catch (JoranException | ZoneRulesException e) {
Logger.getLogger(LOGBackConfigurer.class.getName()).log(Level.SEVERE, "exception while initializing LOGBack", e);
throw new IllegalArgumentException("exception while initializing LOGBack", e);
}
}
Expand Down
2 changes: 1 addition & 1 deletion distribution/conf/env-development/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<property name="EXCEPTION_MDC_VALUES_SUB_TEMPLATE" value=''/>
<property name="LAYOUT_PATTERN_BODY" value="%m%n%styx_exception_data"/>
<property name="LAYOUT_PATTERN_PREFIX" value="%-5p %d{yyyy-MM-dd HH:mm:ss,SSSZZ} [%c{5}] [build=${release.label}] [%t]"/>
<property name="LAYOUT_PATTERN_PREFIX" value="%-5p %d{yyyy-MM-dd HH:mm:ss.SSSZZ} [%c{5}] [build=${release.label}] [%t]"/>
<property name="LAYOUT_PATTERN" value="${LAYOUT_PATTERN_PREFIX} - ${LAYOUT_PATTERN_BODY}"/>

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
Expand Down
2 changes: 1 addition & 1 deletion distribution/conf/env-perf-local/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<conversionRule conversionWord="styx_exception_data" converterClass="com.hotels.styx.infrastructure.logging.ExceptionConverter" />

<property name="LAYOUT_PATTERN_BODY" value="%m%n%styx_exception_data"/>
<property name="LAYOUT_PATTERN_PREFIX" value="%-5p %d{yyyy-MM-dd HH:mm:ss,SSSZZ} [%c{5}] [build=${release.label}] [%t]"/>
<property name="LAYOUT_PATTERN_PREFIX" value="%-5p %d{yyyy-MM-dd HH:mm:ss.SSSZZ} [%c{5}] [build=${release.label}] [%t]"/>
<property name="LAYOUT_PATTERN" value="${LAYOUT_PATTERN_PREFIX} - ${LAYOUT_PATTERN_BODY}"/>

<!---->
Expand Down
2 changes: 1 addition & 1 deletion distribution/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<property name="EXCEPTION_MDC_VALUES_SUB_TEMPLATE" value=''/>
<property name="LAYOUT_PATTERN_BODY" value="%m%n%styx_exception_data"/>
<property name="LAYOUT_PATTERN_PREFIX" value="%-5p %d{yyyy-MM-dd HH:mm:ss,SSSZZ} [%c{5}] [build=${release.label}] [%t]"/>
<property name="LAYOUT_PATTERN_PREFIX" value="%-5p %d{yyyy-MM-dd HH:mm:ss.SSSZZ} [%c{5}] [build=${release.label}] [%t]"/>
<property name="LAYOUT_PATTERN" value="${LAYOUT_PATTERN_PREFIX} - ${LAYOUT_PATTERN_BODY}"/>

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
Expand Down
Loading