Skip to content

Commit ce54e58

Browse files
committed
remove duplicate log message
1 parent d71550e commit ce54e58

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

sentry/src/main/java/io/sentry/transport/AsyncHttpTransport.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -303,18 +303,9 @@ public void run() {
303303
if (result.isSuccess()) {
304304
envelopeCache.discard(envelope);
305305
} else {
306-
final String message;
307-
if (result.getResponseCode() == 413) {
308-
message =
309-
"Envelope was discarded by the server because it was too large."
310-
+ " Consider reducing the size of events, breadcrumbs, or attachments."
311-
+ " You can use the `SentryOptions.onOversizedEvent` callback"
312-
+ " to customize how oversized events are handled.";
313-
} else {
314-
message =
315-
"The transport failed to send the envelope with response code "
316-
+ result.getResponseCode();
317-
}
306+
final String message =
307+
"The transport failed to send the envelope with response code "
308+
+ result.getResponseCode();
318309

319310
options.getLogger().log(SentryLevel.ERROR, message);
320311

0 commit comments

Comments
 (0)