spdlog: don't pass printf format string (#6307)

This commit is contained in:
Philip Dubé 2026-02-28 04:20:09 +00:00 committed by GitHub
parent fcf7d4bd15
commit 00ac1d566d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -725,7 +725,7 @@ void CustomMessage::EncodeColors(std::string& str) const {
if (const size_t secondHashtag = str.find('#', firstHashtag + 1); secondHashtag != std::string::npos) {
str.replace(secondHashtag, 1, "%w");
} else {
SPDLOG_DEBUG("non-matching hashtags in string: \"%s\"", str);
SPDLOG_DEBUG("non-matching hashtags in string: \"{}\"", str);
}
}
}