mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 11:43:18 -04:00
Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
This commit is contained in:
@@ -484,11 +484,11 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
TC_LOG_ERROR("misc", "Sending opcode that has unknown type '%s'", type.c_str());
|
||||
TC_LOG_ERROR("misc", "Sending opcode that has unknown type '{}'", type);
|
||||
break;
|
||||
}
|
||||
}
|
||||
TC_LOG_DEBUG("network", "Sending opcode %u", data.GetOpcode());
|
||||
TC_LOG_DEBUG("network", "Sending opcode {}", data.GetOpcode());
|
||||
data.hexlike();
|
||||
player->GetSession()->SendPacket(&data, true);
|
||||
handler->PSendSysMessage(LANG_COMMAND_OPCODESENT, data.GetOpcode(), unit->GetName().c_str());
|
||||
@@ -1205,7 +1205,7 @@ public:
|
||||
{
|
||||
Player* player = handler->GetPlayer();
|
||||
|
||||
TC_LOG_INFO("sql.dev", "(@PATH, XX, %.3f, %.3f, %.5f, %.5f, 0, 0, 0, 100, 0),", player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), player->GetOrientation());
|
||||
TC_LOG_INFO("sql.dev", "(@PATH, XX, {:.3f}, {:.3f}, {:.5f}, {:.5f}, 0, 0, 0, 100, 0),", player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), player->GetOrientation());
|
||||
|
||||
handler->PSendSysMessage("Waypoint SQL written to SQL Developer log");
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user