fix - 增加 starter 消费 mq 的日志
This commit is contained in:
parent
f6c13979aa
commit
3c8279e45c
@ -36,6 +36,7 @@ public class InnerFilterDefinitionKey implements InnerMessageQueueHandleBeforeFi
|
||||
}
|
||||
Map<String, String> headers = message.getProperties();
|
||||
String processDefinitionKey = headers.getOrDefault(MQ_OWNERSHIP_PROCESS_DEFINITION_KEY, "");
|
||||
log.info("MQ_OWNERSHIP_PROCESS_DEFINITION_KEY: {}", processDefinitionKey);
|
||||
if (properties.getBroadcast().getFilterProcessDefinitionKeys().contains(processDefinitionKey)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ public class InnerFilterMQOwnerShip implements InnerMessageQueueHandleBeforeFilt
|
||||
}
|
||||
Map<String, String> headers = message.getProperties();
|
||||
String mqOwnerShip = headers.getOrDefault(MQ_OWNERSHIP_APPLICATION, null);
|
||||
|
||||
log.info("MQ_OWNERSHIP_APPLICATION: {}", mqOwnerShip);
|
||||
if (!StringUtils.hasText(mqOwnerShip)) {
|
||||
log.debug("【{}】The broadcast message does not attribute the message, will not be ignored. messageId: {}", this.getClass().getSimpleName(), message.getMsgId());
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user