Skip to content
Snippets Groups Projects
Commit 269642fb authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

minor log fix

parent c006ffaa
No related branches found
No related tags found
1 merge request!471minor log fix
Pipeline #163281 failed
......@@ -60,8 +60,7 @@ public abstract class IndexerOqmMessageReceiver implements OqmMessageReceiver {
int statusCode = appException.getError().getCode();
if (statusCode > 199 && statusCode < 300 && statusCode != RequestStatus.INVALID_RECORD) {
log.info(
"Event : {}, was not processed, and will NOT be rescheduled.",
oqmMessage,
"Event id : " + oqmMessage.getId() + ", was not processed, and will NOT be rescheduled.",
appException
);
acked = true;
......@@ -69,16 +68,15 @@ public abstract class IndexerOqmMessageReceiver implements OqmMessageReceiver {
//It is possible to get both AppException with wrapped in original Exception or the original Exception without any wrapper
Exception exception = Optional.ofNullable(appException.getOriginalException()).orElse(appException);
log.warn(
"Event : {}, was not processed, and will BE rescheduled.",
oqmMessage,
"Event id : " + oqmMessage.getId() + ", was not processed, and will BE rescheduled.",
exception
);
}
} catch (Exception exception) {
log.error(
"Error, Event : {}, was not processed, and will BE rescheduled.",
oqmMessage,
exception);
"Event id : " + oqmMessage.getId() + ", was not processed, and will BE rescheduled.",
exception
);
} finally {
if (!acked) {
oqmAckReplier.nack();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment