Skip to content
Snippets Groups Projects
Commit 1033b737 authored by Riabokon Stanislav(EPAM)[GCP]'s avatar Riabokon Stanislav(EPAM)[GCP]
Browse files

Merge branch 'gc-minor-log-fix' into 'master'

minor log fix

See merge request !471
parents c006ffaa 269642fb
No related branches found
No related tags found
1 merge request!471minor log fix
Pipeline #164306 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.
Please register or to comment