Skip to content

Commit c454f3a

Browse files
authored
add tracing debug only when tracing feature is enabled (#454)
Signed-off-by: suryapandian <suryamailsyou@gmail.com>
1 parent 03103f5 commit c454f3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,7 @@ impl Octocrab {
14111411
})
14121412
.transpose()?;
14131413

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

14161417
token.set(token_object.token.clone(), expiration);

0 commit comments

Comments
 (0)