Skip to content

Commit 0e48c2f

Browse files
committed
fix(logging): correct invalid logic that determines whether to log a warning or debug message.
Correction for 8d94aed commit.
1 parent fed1a6e commit 0e48c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ru/mystamps/web/support/mailgun/ApiMailgunEmailSendingStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void send(MailgunEmail email) {
131131
String.class
132132
);
133133

134-
boolean isWarning = response.getStatusCodeValue() == HttpStatus.OK.value();
134+
boolean isWarning = response.getStatusCodeValue() != HttpStatus.OK.value();
135135
String body = StringUtils.remove(response.getBody(), '\n');
136136
logWarningOrDebug(isWarning, "Mailgun response code: {}", response.getStatusCode());
137137
logWarningOrDebug(isWarning, "Mailgun response headers: {}", response.getHeaders());

0 commit comments

Comments
 (0)