diff --git a/loginserver/client.cpp b/loginserver/client.cpp index 9a6a81593..6f64b5899 100644 --- a/loginserver/client.cpp +++ b/loginserver/client.cpp @@ -99,9 +99,11 @@ bool Client::Process() } default: { - char dump[64]; - app->build_header_dump(dump); - Log.Out(Logs::General, Logs::Error, "Recieved unhandled application packet from the client: %s.", dump); + if (Log.log_settings[Logs::Client_Server_Packet_Unhandled].is_category_enabled == 1) { + char dump[64]; + app->build_header_dump(dump); + Log.Out(Logs::General, Logs::Error, "Recieved unhandled application packet from the client: %s.", dump); + } } }