diff options
author | Patric Stout <truebrain@openttd.org> | 2021-05-12 16:34:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 16:34:02 +0200 |
commit | b136e65cf9375700e77579b344f8dd86a5a61336 (patch) | |
tree | 829083df6b7c2f86a2e70eba91bc5e88230a8586 /src/network/core/tcp_admin.cpp | |
parent | 56050fc96f59cef171d3b8a03ae3f3c9b83f9426 (diff) | |
download | openttd-b136e65cf9375700e77579b344f8dd86a5a61336.tar.xz |
Change: reworked the debug levels for network facility (#9251)
It now follows very simple rules:
0 - Fatal, user should know about this
1 - Error, but we are recovering
2 - Warning, wrong but okay if you don't know
3 - Info, information you might care about
4 -
5 - Debug #1 - High level debug messages
6 - Debug #2 - Low level debug messages
7 - Trace information
Diffstat (limited to 'src/network/core/tcp_admin.cpp')
-rw-r--r-- | src/network/core/tcp_admin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/core/tcp_admin.cpp b/src/network/core/tcp_admin.cpp index 36daae4a1..8cc8b1efe 100644 --- a/src/network/core/tcp_admin.cpp +++ b/src/network/core/tcp_admin.cpp @@ -93,9 +93,9 @@ NetworkRecvStatus NetworkAdminSocketHandler::HandlePacket(Packet *p) default: if (this->HasClientQuit()) { - DEBUG(net, 0, "[tcp/admin] received invalid packet type %d from '%s' (%s)", type, this->admin_name, this->admin_version); + DEBUG(net, 0, "[tcp/admin] Received invalid packet type %d from '%s' (%s)", type, this->admin_name, this->admin_version); } else { - DEBUG(net, 0, "[tcp/admin] received illegal packet from '%s' (%s)", this->admin_name, this->admin_version); + DEBUG(net, 0, "[tcp/admin] Received illegal packet from '%s' (%s)", this->admin_name, this->admin_version); } this->CloseConnection(); @@ -129,7 +129,7 @@ NetworkRecvStatus NetworkAdminSocketHandler::ReceivePackets() */ NetworkRecvStatus NetworkAdminSocketHandler::ReceiveInvalidPacket(PacketAdminType type) { - DEBUG(net, 0, "[tcp/admin] received illegal packet type %d from admin %s (%s)", type, this->admin_name, this->admin_version); + DEBUG(net, 0, "[tcp/admin] Received illegal packet type %d from admin %s (%s)", type, this->admin_name, this->admin_version); return NETWORK_RECV_STATUS_MALFORMED_PACKET; } |