Skip to content

Commit 5ea36e4

Browse files
wilxartembilan
authored andcommitted
Fix LogMessage placeholders in MqttHeaderMapper
Fixes: #8888 * Fix `LogMessage` formatting placeholders in `MqttHeaderMapper` **cherry-pick to `6.2.x` & `6.1.x` (cherry picked from commit 8b877fc)
1 parent 9ad3991 commit 5ea36e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-integration-mqtt/src/main/java/org/springframework/integration/mqtt/support/MqttHeaderMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ private static boolean shouldMapHeader(String headerName, String[] patterns) {
122122
if (patterns != null && patterns.length > 0) {
123123
for (String pattern : patterns) {
124124
if (PatternMatchUtils.simpleMatch(pattern, headerName)) {
125-
LOGGER.debug(LogMessage.format("headerName=[{0}] WILL be mapped, matched pattern={1}",
125+
LOGGER.debug(LogMessage.format("headerName=[%s] WILL be mapped, matched pattern=%s",
126126
headerName, pattern));
127127
return true;
128128
}
129129
}
130130
}
131-
LOGGER.debug(LogMessage.format("headerName=[{0}] WILL NOT be mapped", headerName));
131+
LOGGER.debug(LogMessage.format("headerName=[%s] WILL NOT be mapped", headerName));
132132
return false;
133133
}
134134

0 commit comments

Comments
 (0)