Skip to content

Commit

Permalink
add tracing debug only when tracing feature is enabled (#454)
Browse files Browse the repository at this point in the history
Signed-off-by: suryapandian <[email protected]>
  • Loading branch information
suryapandian authored Sep 4, 2023
1 parent 03103f5 commit c454f3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,7 @@ impl Octocrab {
})
.transpose()?;

#[cfg(feature = "tracing")]
tracing::debug!("Token expires at: {:?}", expiration);

token.set(token_object.token.clone(), expiration);
Expand Down

0 comments on commit c454f3a

Please sign in to comment.