Skip to content

Commit

Permalink
chore: log a warning when the refresh failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Apr 18, 2024
1 parent d40cff2 commit 569f4d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/agent/mod.rs
Expand Up @@ -510,6 +510,11 @@ where
let result = client
.exchange_refresh_token(refresh_token.clone(), session_state)
.await;

if let Err(err) = &result {
log::warn!("Failed to refresh token: {err}");
}

self.update_state_from_result(result);
}
}
Expand Down

0 comments on commit 569f4d9

Please sign in to comment.