Skip to content

Commit b112210

Browse files
client: Gate tracing usage
1 parent 9a989a0 commit b112210

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎client/src/file/api/legacy_keyring.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ impl Keyring {
7878
let mut items = Vec::with_capacity(self.item_count);
7979
for _ in 0..self.item_count {
8080
let display_name = Self::read_string(&mut cursor)?.unwrap_or_else(|| {
81+
#[cfg(feature = "tracing")]
8182
tracing::warn!("Item has no label, defaulting to empty");
8283
""
8384
});
8485
let secret = Self::read_byte_array(&mut cursor)?.unwrap_or_else(|| {
86+
#[cfg(feature = "tracing")]
8587
tracing::warn!("Item '{display_name}' has no secret, defaulting to empty");
8688
&[]
8789
});

0 commit comments

Comments
 (0)