[06.10.20] Moved setting of correlationID to before first logging as it was generating a random ID on receiving a message
This commit is contained in:
parent
a396b0f002
commit
81b988e7b8
@ -58,10 +58,11 @@ public class PriceConsumer {
|
||||
String correlationId = getCorrelationId(message);
|
||||
String syncId = UUID.randomUUID().toString();
|
||||
|
||||
setCorrelationId(correlationId);
|
||||
|
||||
logger.info("Received Message: " + message.getBody(String.class));
|
||||
|
||||
try {
|
||||
setCorrelationId(correlationId);
|
||||
|
||||
if (message.getBody(String.class) == null | message.getBody(String.class).equals("")) {
|
||||
throw new NoBodyOrStringException();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user