Skip to content

Commit

Permalink
refactor: improve error logs in timers
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Jul 20, 2024
1 parent 973f90c commit 0889351
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/ic-websocket-cdk/src/timers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ fn send_ack_to_clients_timer_callback() {
// TODO: decide what to do when sending the message fails

custom_print!(
"[ack-to-clients-timer-cb]: Error sending ack message to client {}: {:?}",
client_key,
e
"[ack-to-clients-timer-cb]: Error sending ack message to client {client_key}: {e}"
);
} else {
add_client_to_wait_for_keep_alive(client_key);
Expand All @@ -99,10 +97,8 @@ fn send_ack_to_clients_timer_callback() {
Err(e) => {
// TODO: decide what to do when getting the expected incoming sequence number fails (shouldn't happen)
custom_print!(
"[ack-to-clients-timer-cb]: Error getting expected incoming sequence number for client {}: {:?}",
client_key,
e,
);
"[ack-to-clients-timer-cb]: Error getting expected incoming sequence number for client {client_key}: {e}"
);
},
}
}
Expand Down

0 comments on commit 0889351

Please sign in to comment.