Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ futures = { version = "0.3.28", optional = true}
thiserror = { version = "1.0.43", optional = true }
ureq = { version = "2.7.1", optional = true, features = ["native-tls", "json"] }
native-tls = { version = "0.2.11", optional = true }
log = "0.4.19"

[features]
default = ["online"]
Expand Down
3 changes: 3 additions & 0 deletions src/api/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ impl ApiBuilder {
pub fn new() -> Self {
let cache = Cache::default();
let token_filename = cache.token_path();
if !token_filename.exists() {
log::info!("Token file not found {path:?}");
}
let token = match std::fs::read_to_string(token_filename) {
Ok(token_content) => {
let token_content = token_content.trim();
Expand Down
3 changes: 3 additions & 0 deletions src/api/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ impl ApiBuilder {
pub fn new() -> Self {
let cache = Cache::default();
let token_filename = cache.token_path();
if !token_filename.exists() {
log::info!("Token file not found {path:?}");
}
let token = match std::fs::read_to_string(token_filename) {
Ok(token_content) => {
let token_content = token_content.trim();
Expand Down