log to say we saved keys

This commit is contained in:
Alex Janka 2024-02-12 11:56:26 +11:00
parent aeb13a83bc
commit 6d4265478d
4 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -1997,7 +1997,7 @@ dependencies = [
[[package]]
name = "tesla-auth-callback-watcher"
version = "0.2.3"
version = "0.3.0"
dependencies = [
"alex-utils",
"chrono",

View file

@ -1,6 +1,6 @@
[package]
name = "tesla-auth-callback-watcher"
version = "0.2.3"
version = "0.3.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -1,7 +1,7 @@
# Maintainer: Alex Janka <alex@alexjanka.com>
pkgname=tesla-auth-callback-watcher
pkgver=0.2.3
pkgver=0.3.0
pkgrel=1
pkgdesc="server for tesla auth callbacks"
arch=('x86_64' 'aarch64')

View file

@ -177,7 +177,7 @@ fn save_auth(keys: AuthKeySuccess) {
.map(|v| v.join(chrono::Local::now().to_rfc3339()));
match auth_info.save(filename.as_deref()) {
Ok(Some(v)) => log::warn!("could not save keys! keys: {v:?}"),
Ok(None) => {}
Ok(None) => log::warn!("saved keys to {filename:?}"),
Err(e) => log::error!("error saving keys: {e:?}"),
}
}