spdlog: don't pass printf format string (#6307)
This commit is contained in:
@@ -725,7 +725,7 @@ void CustomMessage::EncodeColors(std::string& str) const {
|
|||||||
if (const size_t secondHashtag = str.find('#', firstHashtag + 1); secondHashtag != std::string::npos) {
|
if (const size_t secondHashtag = str.find('#', firstHashtag + 1); secondHashtag != std::string::npos) {
|
||||||
str.replace(secondHashtag, 1, "%w");
|
str.replace(secondHashtag, 1, "%w");
|
||||||
} else {
|
} else {
|
||||||
SPDLOG_DEBUG("non-matching hashtags in string: \"%s\"", str);
|
SPDLOG_DEBUG("non-matching hashtags in string: \"{}\"", str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user