1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Fix message logging to use actual string pointer.

This commit is contained in:
Sandu Liviu Catalin 2020-09-08 23:16:57 +03:00
parent d6f3f52eec
commit 7b93498558

View File

@ -183,12 +183,12 @@ static inline void OutputConsoleMessage(const Logger::MsgPtr & msg)
if (msg->mTms)
{
std::printf("%s %s %s\033[0m\n",
msg->mSub ? GetColoredLevelTagDim(msg->mLvl) : GetColoredLevelTag(msg->mLvl), msg->mBuf, msg);
msg->mSub ? GetColoredLevelTagDim(msg->mLvl) : GetColoredLevelTag(msg->mLvl), msg->mBuf, msg->mStr.c_str());
}
else
{
std::printf("%s %s\033[0m\n",
msg->mSub ? GetColoredLevelTagDim(msg->mLvl) : GetColoredLevelTag(msg->mLvl), msg);
msg->mSub ? GetColoredLevelTagDim(msg->mLvl) : GetColoredLevelTag(msg->mLvl), msg->mStr.c_str());
}
#endif // SQMOD_OS_WINDOWS
}