Skip to content

Commit edad75d

Browse files
committed
Mask token with "*"
Signed-off-by: hi-rustin <[email protected]>
1 parent 774ccc3 commit edad75d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cargo/ops/registry.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,9 @@ fn registry(
482482
registry.as_deref(),
483483
&api_host,
484484
)?;
485-
log::debug!("found token {:?}", token);
485+
let mut mask_token = token.clone();
486+
mask_token.replace_range(0..token.len() / 2, &"*".repeat(token.len() / 2));
487+
log::debug!("found token {:?}", mask_token);
486488
Some(token)
487489
}
488490
}

0 commit comments

Comments
 (0)