Log more types of request IDs (#5645)

Different services return different sets of IDs, log all of them to
simplify debugging.
This commit is contained in:
pakrym-oai
2025-10-24 12:12:03 -07:00
committed by GitHub
parent 00c1de0c56
commit a4be4d78b9
4 changed files with 24 additions and 12 deletions

View File

@@ -44,6 +44,8 @@ impl PartialEq for CodexAuth {
impl CodexAuth {
pub async fn refresh_token(&self) -> Result<String, std::io::Error> {
tracing::info!("Refreshing token");
let token_data = self
.get_current_token_data()
.ok_or(std::io::Error::other("Token data is not available."))?;
@@ -917,7 +919,10 @@ impl AuthManager {
self.reload();
Ok(Some(token))
}
Err(e) => Err(e),
Err(e) => {
tracing::error!("Failed to refresh token: {}", e);
Err(e)
}
}
}