Skip to content

Commit

Permalink
debug log positionning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagios opsiDev authored and Nagios opsiDev committed Dec 27, 2024
1 parent 5b638e5 commit 1e20576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/n_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -2680,7 +2680,8 @@ int send_data( void *netw, char *buf, NSTRBYTE n )
if( br > 0 )
{
bcount += br; /* increment byte counter */
tmp_buf += br; /* move buffer ptr for next read */
tmp_buf += br; /* move buffer ptr for next read */
n_log( LOG_DEBUG , "socket %d sent %d/%d , retry %d/%d" , s , bcount , n , retry_count , NETW_MAX_RETRIES );
}
else if( error == ECONNRESET || error == ENOTCONN )
{
Expand All @@ -2695,7 +2696,6 @@ int send_data( void *netw, char *buf, NSTRBYTE n )
FreeNoLog( errmsg );
return NETW_SOCKET_ERROR ;
}
n_log( LOG_DEBUG , "socket %d sent %d/%d , retry %d/%d" , s , bcount , n , retry_count , NETW_MAX_RETRIES );
}
return (int)bcount;
} /*send_data(...)*/
Expand Down Expand Up @@ -2742,6 +2742,7 @@ int recv_data( void *netw, char *buf, NSTRBYTE n )
{
bcount += br; /* increment byte counter */
tmp_buf += br; /* move buffer ptr for next read */
n_log( LOG_DEBUG , "socket %d received %d/%d , retry %d/%d" , s , bcount , n , retry_count , NETW_MAX_RETRIES );
}
else if( br == 0 )
{
Expand All @@ -2756,7 +2757,6 @@ int recv_data( void *netw, char *buf, NSTRBYTE n )
FreeNoLog( errmsg );
return NETW_SOCKET_ERROR ;
}
n_log( LOG_DEBUG , "socket %d received %d/%d , retry %d/%d" , s , bcount , n , retry_count , NETW_MAX_RETRIES );
}
return (int)bcount;
} /*recv_data(...)*/
Expand Down

0 comments on commit 1e20576

Please sign in to comment.