@@ -355,7 +355,7 @@ static int read_connection_handshake(const Logger *logger, TCP_Secure_Connection
355
355
const int len = read_TCP_packet (logger , con -> con .sock , data , TCP_CLIENT_HANDSHAKE_SIZE , & con -> con .ip_port );
356
356
357
357
if (len == -1 ) {
358
- LOGGER_WARNING (logger , "connection handshake is not ready yet" );
358
+ LOGGER_TRACE (logger , "connection handshake is not ready yet" );
359
359
return 0 ;
360
360
}
361
361
@@ -904,12 +904,12 @@ static int do_incoming(TCP_Server *tcp_server, uint32_t i)
904
904
return -1 ;
905
905
}
906
906
907
- LOGGER_DEBUG (tcp_server -> logger , "handling incoming TCP connection %d" , i );
907
+ LOGGER_TRACE (tcp_server -> logger , "handling incoming TCP connection %d" , i );
908
908
909
909
const int ret = read_connection_handshake (tcp_server -> logger , conn , tcp_server -> secret_key );
910
910
911
911
if (ret == -1 ) {
912
- LOGGER_DEBUG (tcp_server -> logger , "incoming connection %d dropped due to failed handshake" , i );
912
+ LOGGER_TRACE (tcp_server -> logger , "incoming connection %d dropped due to failed handshake" , i );
913
913
kill_TCP_secure_connection (conn );
914
914
return -1 ;
915
915
}
@@ -941,7 +941,7 @@ static int do_unconfirmed(TCP_Server *tcp_server, const Mono_Time *mono_time, ui
941
941
return -1 ;
942
942
}
943
943
944
- LOGGER_DEBUG (tcp_server -> logger , "handling unconfirmed TCP connection %d" , i );
944
+ LOGGER_TRACE (tcp_server -> logger , "handling unconfirmed TCP connection %d" , i );
945
945
946
946
uint8_t packet [MAX_PACKET_SIZE ];
947
947
const int len = read_packet_TCP_secure_connection (tcp_server -> logger , conn -> con .sock , & conn -> next_packet_length ,
@@ -978,7 +978,7 @@ static bool tcp_process_secure_packet(TCP_Server *tcp_server, uint32_t i)
978
978
}
979
979
980
980
if (handle_TCP_packet (tcp_server , i , packet , len ) == -1 ) {
981
- LOGGER_DEBUG (tcp_server -> logger , "dropping connection %d: data packet (len=%d) not handled" , i , len );
981
+ LOGGER_TRACE (tcp_server -> logger , "dropping connection %d: data packet (len=%d) not handled" , i , len );
982
982
kill_accepted (tcp_server , i );
983
983
return false;
984
984
}
@@ -1088,19 +1088,19 @@ static bool tcp_epoll_process(TCP_Server *tcp_server, const Mono_Time *mono_time
1088
1088
}
1089
1089
1090
1090
case TCP_SOCKET_INCOMING : {
1091
- LOGGER_DEBUG (tcp_server -> logger , "incoming connection %d dropped" , index );
1091
+ LOGGER_TRACE (tcp_server -> logger , "incoming connection %d dropped" , index );
1092
1092
kill_TCP_secure_connection (& tcp_server -> incoming_connection_queue [index ]);
1093
1093
break ;
1094
1094
}
1095
1095
1096
1096
case TCP_SOCKET_UNCONFIRMED : {
1097
- LOGGER_DEBUG (tcp_server -> logger , "unconfirmed connection %d dropped" , index );
1097
+ LOGGER_TRACE (tcp_server -> logger , "unconfirmed connection %d dropped" , index );
1098
1098
kill_TCP_secure_connection (& tcp_server -> unconfirmed_connection_queue [index ]);
1099
1099
break ;
1100
1100
}
1101
1101
1102
1102
case TCP_SOCKET_CONFIRMED : {
1103
- LOGGER_DEBUG (tcp_server -> logger , "confirmed connection %d dropped" , index );
1103
+ LOGGER_TRACE (tcp_server -> logger , "confirmed connection %d dropped" , index );
1104
1104
kill_accepted (tcp_server , index );
1105
1105
break ;
1106
1106
}
@@ -1150,7 +1150,7 @@ static bool tcp_epoll_process(TCP_Server *tcp_server, const Mono_Time *mono_time
1150
1150
const int index_new = do_incoming (tcp_server , index );
1151
1151
1152
1152
if (index_new != -1 ) {
1153
- LOGGER_DEBUG (tcp_server -> logger , "incoming connection %d was accepted as %d" , index , index_new );
1153
+ LOGGER_TRACE (tcp_server -> logger , "incoming connection %d was accepted as %d" , index , index_new );
1154
1154
events [n ].events = EPOLLIN | EPOLLET | EPOLLRDHUP ;
1155
1155
events [n ].data .u64 = sock .socket | ((uint64_t )TCP_SOCKET_UNCONFIRMED << 32 ) | ((uint64_t )index_new << 40 );
1156
1156
@@ -1168,7 +1168,7 @@ static bool tcp_epoll_process(TCP_Server *tcp_server, const Mono_Time *mono_time
1168
1168
const int index_new = do_unconfirmed (tcp_server , mono_time , index );
1169
1169
1170
1170
if (index_new != -1 ) {
1171
- LOGGER_DEBUG (tcp_server -> logger , "unconfirmed connection %d was confirmed as %d" , index , index_new );
1171
+ LOGGER_TRACE (tcp_server -> logger , "unconfirmed connection %d was confirmed as %d" , index , index_new );
1172
1172
events [n ].events = EPOLLIN | EPOLLET | EPOLLRDHUP ;
1173
1173
events [n ].data .u64 = sock .socket | ((uint64_t )TCP_SOCKET_CONFIRMED << 32 ) | ((uint64_t )index_new << 40 );
1174
1174
0 commit comments