v1.9.9-pre-6: clean exit
All checks were successful
Build and release .deb / Release (push) Successful in 51s

This commit is contained in:
Alex Janka 2024-12-28 22:57:13 +11:00
parent 0205b9be37
commit 1552a10518
3 changed files with 8 additions and 5 deletions

4
Cargo.lock generated
View file

@ -239,7 +239,7 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]] [[package]]
name = "charge-controller-supervisor" name = "charge-controller-supervisor"
version = "1.9.9-pre-5" version = "1.9.9-pre-6"
dependencies = [ dependencies = [
"chrono", "chrono",
"clap", "clap",
@ -2201,7 +2201,7 @@ dependencies = [
[[package]] [[package]]
name = "tesla-charge-controller" name = "tesla-charge-controller"
version = "1.9.9-pre-5" version = "1.9.9-pre-6"
dependencies = [ dependencies = [
"chrono", "chrono",
"clap", "clap",

View file

@ -4,7 +4,7 @@ default-members = ["charge-controller-supervisor"]
resolver = "2" resolver = "2"
[workspace.package] [workspace.package]
version = "1.9.9-pre-5" version = "1.9.9-pre-6"
[workspace.lints.clippy] [workspace.lints.clippy]
pedantic = "warn" pedantic = "warn"

View file

@ -90,7 +90,6 @@ async fn watch(args: Args) -> eyre::Result<()> {
match v { match v {
Some(Err(e)) => { Some(Err(e)) => {
log::error!("{e:?}"); log::error!("{e:?}");
std::process::exit(1);
} }
_ => { _ => {
log::error!("no controller tasks left???"); log::error!("no controller tasks left???");
@ -98,7 +97,11 @@ async fn watch(args: Args) -> eyre::Result<()> {
} }
} }
v = server_task => { v = server_task => {
log::error!("server exited: {v:#?}"); if let Err(e)=v {
log::error!("server exited: {e:#?}");
} else {
std::process::exit(0);
}
} }
} }