Skip to content

Commit

Permalink
Changing log around. (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil authored Dec 27, 2024
1 parent edda880 commit da3a3d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ impl Cache {
/// Use `huggingface-cli login` to set it up.
pub fn token(&self) -> Option<String> {
let token_filename = self.token_path();
if !token_filename.exists() {
log::info!("Token file not found {token_filename:?}");
if token_filename.exists() {
log::info!("Using token file found {token_filename:?}");
}
match std::fs::read_to_string(token_filename) {
Ok(token_content) => {
Expand Down

0 comments on commit da3a3d2

Please sign in to comment.