mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Clean up format logs (#682)
This commit is contained in:
parent
9e08bb20d2
commit
a632ef8ccd
@ -31,7 +31,7 @@ void MigrationRunner::RunMigrations() {
|
|||||||
delete stmt;
|
delete stmt;
|
||||||
if (doExit) continue;
|
if (doExit) continue;
|
||||||
|
|
||||||
Game::logger->Log("MigrationRunner", "Running migration: " + migration.name + "");
|
Game::logger->Log("MigrationRunner", "Running migration: %s", migration.name.c_str());
|
||||||
|
|
||||||
finalSQL.append(migration.data);
|
finalSQL.append(migration.data);
|
||||||
finalSQL.append('\n');
|
finalSQL.append('\n');
|
||||||
@ -49,7 +49,7 @@ void MigrationRunner::RunMigrations() {
|
|||||||
delete simpleStatement;
|
delete simpleStatement;
|
||||||
}
|
}
|
||||||
catch (sql::SQLException e) {
|
catch (sql::SQLException e) {
|
||||||
Game::logger->Log("MigrationRunner", std::string("Encountered error running migration: ") + e.what() + "");
|
Game::logger->Log("MigrationRunner", "Encountered error running migration: %s", e.what());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2408,7 +2408,7 @@ void GameMessages::HandleBBBLoadItemRequest(RakNet::BitStream* inStream, Entity*
|
|||||||
LWOOBJID itemID = LWOOBJID_EMPTY;
|
LWOOBJID itemID = LWOOBJID_EMPTY;
|
||||||
inStream->Read(itemID);
|
inStream->Read(itemID);
|
||||||
|
|
||||||
Game::logger->Log("BBB", "Load item request for: " + std::to_string(itemID) + "");
|
Game::logger->Log("BBB", "Load item request for: %lld", itemID);
|
||||||
|
|
||||||
CBITSTREAM;
|
CBITSTREAM;
|
||||||
PacketUtils::WriteHeader(bitStream, CLIENT, MSG_CLIENT_BLUEPRINT_LOAD_RESPONSE_ITEMID);
|
PacketUtils::WriteHeader(bitStream, CLIENT, MSG_CLIENT_BLUEPRINT_LOAD_RESPONSE_ITEMID);
|
||||||
@ -3848,7 +3848,7 @@ void GameMessages::HandleMessageBoxResponse(RakNet::BitStream* inStream, Entity*
|
|||||||
userData.push_back(character);
|
userData.push_back(character);
|
||||||
}
|
}
|
||||||
|
|
||||||
Game::logger->Log("HandleMessageBoxResponse", "Button: " + std::to_string(iButton) + "; LOT: " + std::to_string(entity->GetLOT()) + " identifier: " + GeneralUtils::UTF16ToWTF8(identifier) + "; userData: " + GeneralUtils::UTF16ToWTF8(userData));
|
Game::logger->Log("HandleMessageBoxResponse", "Button: %d; LOT: %u identifier: %s; userData: %s", iButton, entity->GetLOT(), GeneralUtils::UTF16ToWTF8(identifier).c_str(), GeneralUtils::UTF16ToWTF8(userData).c_str());
|
||||||
|
|
||||||
auto* user = UserManager::Instance()->GetUser(sysAddr);
|
auto* user = UserManager::Instance()->GetUser(sysAddr);
|
||||||
|
|
||||||
@ -3912,7 +3912,7 @@ void GameMessages::HandleChoiceBoxRespond(RakNet::BitStream* inStream, Entity* e
|
|||||||
identifier.push_back(character);
|
identifier.push_back(character);
|
||||||
}
|
}
|
||||||
|
|
||||||
Game::logger->Log("HandleChoiceBoxRespond", "Button: " + std::to_string(iButton) + "; LOT: " + std::to_string(entity->GetLOT()) + " buttonIdentifier: " + GeneralUtils::UTF16ToWTF8(buttonIdentifier) + "; userData: " + GeneralUtils::UTF16ToWTF8(identifier));
|
Game::logger->Log("HandleChoiceBoxRespond", "Button: %d; LOT: %u buttonIdentifier: %s; userData: %s", iButton, entity->GetLOT(), GeneralUtils::UTF16ToWTF8(buttonIdentifier).c_str(), GeneralUtils::UTF16ToWTF8(identifier).c_str());
|
||||||
|
|
||||||
auto* user = UserManager::Instance()->GetUser(sysAddr);
|
auto* user = UserManager::Instance()->GetUser(sysAddr);
|
||||||
|
|
||||||
|
@ -818,7 +818,7 @@ CppScripts::Script* CppScripts::GetScript(Entity* parent, const std::string& scr
|
|||||||
script = invalidToReturn;
|
script = invalidToReturn;
|
||||||
else if (script == invalidToReturn) {
|
else if (script == invalidToReturn) {
|
||||||
if (scriptName.length() > 0)
|
if (scriptName.length() > 0)
|
||||||
Game::logger->LogDebug("CppScripts", "Attempted to load CppScript for '" + scriptName + "', but returned InvalidScript.");
|
Game::logger->LogDebug("CppScripts", "Attempted to load CppScript for '%s', but returned InvalidScript.", scriptName.c_str());
|
||||||
// information not really needed for sys admins but is for developers
|
// information not really needed for sys admins but is for developers
|
||||||
|
|
||||||
script = invalidToReturn;
|
script = invalidToReturn;
|
||||||
|
@ -1064,7 +1064,7 @@ void HandlePacket(Packet* packet) {
|
|||||||
stmt->setUInt64(1, propertyId);
|
stmt->setUInt64(1, propertyId);
|
||||||
auto res = stmt->executeQuery();
|
auto res = stmt->executeQuery();
|
||||||
while (res->next()) {
|
while (res->next()) {
|
||||||
Game::logger->Log("UGC", "Getting lxfml ugcID: " + std::to_string(res->getUInt(1)));
|
Game::logger->Log("UGC", "Getting lxfml ugcID: %u", res->getUInt(1));
|
||||||
|
|
||||||
//Get lxfml:
|
//Get lxfml:
|
||||||
auto stmtL = Database::CreatePreppedStmt("SELECT lxfml from ugc where id=?");
|
auto stmtL = Database::CreatePreppedStmt("SELECT lxfml from ugc where id=?");
|
||||||
@ -1321,4 +1321,4 @@ void SendShutdownMessageToMaster() {
|
|||||||
CBITSTREAM;
|
CBITSTREAM;
|
||||||
PacketUtils::WriteHeader(bitStream, MASTER, MSG_MASTER_SHUTDOWN_RESPONSE);
|
PacketUtils::WriteHeader(bitStream, MASTER, MSG_MASTER_SHUTDOWN_RESPONSE);
|
||||||
Game::server->SendToMaster(&bitStream);
|
Game::server->SendToMaster(&bitStream);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user