Skip to content

Commit 5bebc56

Browse files
johnnywillerJohnny Goncalvesadinauer
authored
Change log level from INFO to WARN for error message indicating a failed Log4j2 Sentry.init (#2606)
Co-authored-by: Johnny Goncalves <[email protected]> Co-authored-by: Alexander Dinauer <[email protected]> Co-authored-by: Alexander Dinauer <[email protected]>
1 parent 550d8ec commit 5bebc56

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
- No longer send event / transaction to Sentry if `beforeSend` / `beforeSendTransaction` throws ([#2591](https://github.com/getsentry/sentry-java/pull/2591))
2424
- Add version to sentryClientName used in auth header ([#2596](https://github.com/getsentry/sentry-java/pull/2596))
2525
- Keep integration names from being obfuscated ([#2599](https://github.com/getsentry/sentry-java/pull/2599))
26+
- Change log level from INFO to WARN for error message indicating a failed Log4j2 Sentry.init ([#2606](https://github.com/getsentry/sentry-java/pull/2606))
27+
- The log message was often not visible as our docs suggest a minimum log level of WARN
2628

2729
### Dependencies
2830

sentry-log4j2/src/main/java/io/sentry/log4j2/SentryAppender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void start() {
136136
Optional.ofNullable(transportFactory).ifPresent(options::setTransportFactory);
137137
});
138138
} catch (IllegalArgumentException e) {
139-
LOGGER.info("Failed to init Sentry during appender initialization: " + e.getMessage());
139+
LOGGER.warn("Failed to init Sentry during appender initialization: " + e.getMessage());
140140
}
141141
}
142142
addPackageAndIntegrationInfo();

0 commit comments

Comments
 (0)