Skip to content

Commit

Permalink
Update connection.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jprzimba committed Jan 4, 2025
1 parent 6247b62 commit 98c72a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/network/connection/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void Connection::parseProxyIdentification(const std::error_code &error) {

if (error || connectionState == CONNECTION_STATE_CLOSED) {
if (error != asio::error::operation_aborted && error != asio::error::eof && error != asio::error::connection_reset) {
g_logger().debug("[Connection::parseProxyIdentification] - Read error: {}", error.message());
g_logger().error("[Connection::parseProxyIdentification] - Read error: {}", error.message());
}
close(FORCE_CLOSE);
return;
Expand Down Expand Up @@ -247,7 +247,7 @@ void Connection::parsePacket(const std::error_code &error) {

if (error || connectionState == CONNECTION_STATE_CLOSED) {
if (error) {
g_logger().debug("[Connection::parsePacket] - Read error: {}", error.message());
g_logger().error("[Connection::parsePacket] - Read error: {}", error.message());
}
close(FORCE_CLOSE);
return;
Expand Down

0 comments on commit 98c72a8

Please sign in to comment.