Skip to content

Commit

Permalink
Change service error log level
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Jan 8, 2025
1 parent b8e3056 commit 1873b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fiber/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3378,13 +3378,13 @@ impl From<&MyServiceHandle> for FiberProtocolHandle {
#[async_trait]
impl ServiceHandle for MyServiceHandle {
async fn handle_error(&mut self, _context: &mut ServiceContext, error: ServiceError) {
trace!("Service error: {:?}", error);
error!("Tentacle service error: {:?}", error);
// TODO
// ServiceError::DialerError => remove address from peer store
// ServiceError::ProtocolError => ban peer
}
async fn handle_event(&mut self, _context: &mut ServiceContext, event: ServiceEvent) {
trace!("Service event: {:?}", event);
trace!("Tentacle service event: {:?}", event);
}
}

Expand Down

0 comments on commit 1873b2b

Please sign in to comment.