From 87afadb7ffc1629d7d37c28f6b7284d2c2ea789b Mon Sep 17 00:00:00 2001 From: Maciej Walkowiak Date: Fri, 26 Feb 2021 12:53:54 +0100 Subject: [PATCH] Fix: Initialize Sentry in Logback appender when DSN is not set in XML config (#1296) * Fix: Start Logback appender when DSN is not set in XML config Fixes #1295 * changelog. --- CHANGELOG.md | 1 + .../main/java/io/sentry/logback/SentryAppender.java | 2 +- .../kotlin/io/sentry/logback/SentryAppenderTest.kt | 11 ++++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68f2c68095..d441bef096 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # vNext * Fix: Fix setting in-app-includes from external properties (#1291) +* Fix: Initialize Sentry in Logback appender when DSN is not set in XML config (#1296) * Fix: Fix JUL integration SDK name (#1293) # 4.2.0 diff --git a/sentry-logback/src/main/java/io/sentry/logback/SentryAppender.java b/sentry-logback/src/main/java/io/sentry/logback/SentryAppender.java index 2716b7c266..1dc24b96be 100644 --- a/sentry-logback/src/main/java/io/sentry/logback/SentryAppender.java +++ b/sentry-logback/src/main/java/io/sentry/logback/SentryAppender.java @@ -35,7 +35,7 @@ public final class SentryAppender extends UnsynchronizedAppenderBase