Logs::ZoneServer to LogInfo

This commit is contained in:
Akkadius 2019-09-02 03:30:03 -05:00
parent af4c630ede
commit 698d6d4ed2
5 changed files with 8 additions and 19 deletions

View File

@ -814,7 +814,7 @@ void Client::ChannelMessageReceived(uint8 chan_num, uint8 language, uint8 lang_s
char message[4096]; char message[4096];
strn0cpy(message, orig_message, sizeof(message)); strn0cpy(message, orig_message, sizeof(message));
Log(Logs::Detail, Logs::ZoneServer, "Client::ChannelMessageReceived() Channel:%i message:'%s'", chan_num, message); LogInfo("Client::ChannelMessageReceived() Channel:[{}] message:[{}]", chan_num, message);
if (targetname == nullptr) { if (targetname == nullptr) {
targetname = (!GetTarget()) ? "" : GetTarget()->GetName(); targetname = (!GetTarget()) ? "" : GetTarget()->GetName();
@ -1636,7 +1636,7 @@ void Client::UpdateAdmin(bool iFromDB) {
if(m_pp.gm) if(m_pp.gm)
{ {
Log(Logs::Moderate, Logs::ZoneServer, "%s - %s is a GM", __FUNCTION__ , GetName()); LogInfo("[{}] - [{}] is a GM", __FUNCTION__ , GetName());
// no need for this, having it set in pp you already start as gm // no need for this, having it set in pp you already start as gm
// and it's also set in your spawn packet so other people see it too // and it's also set in your spawn packet so other people see it too
// SendAppearancePacket(AT_GM, 1, false); // SendAppearancePacket(AT_GM, 1, false);

View File

@ -459,16 +459,10 @@ int main(int argc, char** argv) {
frame_prev = frame_now; frame_prev = frame_now;
/** /**
* Telnet server * Websocket server
*/ */
if (!websocker_server_opened && Config->ZonePort != 0) { if (!websocker_server_opened && Config->ZonePort != 0) {
Log( LogInfo("Websocket Server listener started ([{}]:[{}])", Config->TelnetIP.c_str(), Config->ZonePort);
Logs::General,
Logs::ZoneServer,
"Websocket Server listener started (%s:%u).",
Config->TelnetIP.c_str(),
Config->ZonePort
);
ws_server.reset(new EQ::Net::WebsocketServer(Config->TelnetIP, Config->ZonePort)); ws_server.reset(new EQ::Net::WebsocketServer(Config->TelnetIP, Config->ZonePort));
RegisterApiService(ws_server); RegisterApiService(ws_server);
websocker_server_opened = true; websocker_server_opened = true;

View File

@ -473,7 +473,7 @@ void Object::RandomSpawn(bool send_packet) {
} }
} }
Log(Logs::Detail, Logs::ZoneServer, "Object::RandomSpawn(%s): %d (%.2f, %.2f, %.2f)", m_data.object_name, m_inst->GetID(), m_data.x, m_data.y, m_data.z); LogInfo("Object::RandomSpawn([{}]): [{}] ([{}], [{}], [{}])", m_data.object_name, m_inst->GetID(), m_data.x, m_data.y, m_data.z);
respawn_timer.Disable(); respawn_timer.Disable();

View File

@ -191,7 +191,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
if (pack->size != sizeof(ServerConnectInfo)) if (pack->size != sizeof(ServerConnectInfo))
break; break;
ServerConnectInfo* sci = (ServerConnectInfo*)pack->pBuffer; ServerConnectInfo* sci = (ServerConnectInfo*)pack->pBuffer;
Log(Logs::Detail, Logs::ZoneServer, "World assigned Port: %d for this zone.", sci->port); LogInfo("World assigned Port: [{}] for this zone", sci->port);
ZoneConfig::SetZonePort(sci->port); ZoneConfig::SetZonePort(sci->port);
break; break;
} }
@ -794,7 +794,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
} }
case ServerOP_SyncWorldTime: { case ServerOP_SyncWorldTime: {
if (zone != 0 && !zone->is_zone_time_localized) { if (zone != 0 && !zone->is_zone_time_localized) {
Log(Logs::Moderate, Logs::ZoneServer, "%s Received Message SyncWorldTime", __FUNCTION__); LogInfo("[{}] Received Message SyncWorldTime", __FUNCTION__);
eqTimeOfDay* newtime = (eqTimeOfDay*)pack->pBuffer; eqTimeOfDay* newtime = (eqTimeOfDay*)pack->pBuffer;
zone->zone_time.SetCurrentEQTimeOfDay(newtime->start_eqtime, newtime->start_realtime); zone->zone_time.SetCurrentEQTimeOfDay(newtime->start_eqtime, newtime->start_realtime);

View File

@ -1462,12 +1462,7 @@ void Zone::StartShutdownTimer(uint32 set_time) {
LogInfo("Zone::StartShutdownTimer set to {}", set_time); LogInfo("Zone::StartShutdownTimer set to {}", set_time);
} }
Log(Logs::Detail, Logs::ZoneServer, LogInfo("Zone::StartShutdownTimer trigger - set_time: [{}] remaining_time: [{}] diff: [{}]", set_time, autoshutdown_timer.GetRemainingTime(), (set_time - autoshutdown_timer.GetRemainingTime()));
"Zone::StartShutdownTimer trigger - set_time: %u remaining_time: %u diff: %i",
set_time,
autoshutdown_timer.GetRemainingTime(),
(set_time - autoshutdown_timer.GetRemainingTime())
);
} }
bool Zone::Depop(bool StartSpawnTimer) { bool Zone::Depop(bool StartSpawnTimer) {