Describe the bug
We have some log like:
log.debug("[{}] Redirecting the rest call to {}: cluster={}", redirect, peerClusterData);
The number of {} is different to arguments count. And for exception logging:
log.warn("Failed to offload: {}", e.getCause());
The last argument type is Throwable , here is last argument will not be treated as a format argument even there is a placeholder.