specify which channel is erroring

This commit is contained in:
Alex Janka 2024-01-15 09:09:15 +11:00
parent 8f419109c3
commit 89f6cd11c5
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -2256,7 +2256,7 @@ dependencies = [
[[package]] [[package]]
name = "tesla-charge-controller" name = "tesla-charge-controller"
version = "0.2.1" version = "0.2.2"
dependencies = [ dependencies = [
"async-channel", "async-channel",
"chrono", "chrono",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "tesla-charge-controller" name = "tesla-charge-controller"
version = "0.2.1" version = "0.2.2"
edition = "2021" edition = "2021"
license = "MITNFA" license = "MITNFA"
description = "Controls Tesla charge rate based on solar charge data" description = "Controls Tesla charge rate based on solar charge data"

View file

@ -80,7 +80,7 @@ async fn main() {
_ = interval.tick() => pli.refresh(), _ = interval.tick() => pli.refresh(),
message = pli_receiver.recv() => match message { message = pli_receiver.recv() => match message {
Ok(message) => pli.process_request(message), Ok(message) => pli.process_request(message),
Err(e) => error!("Error on receive channel: {e:?}") Err(e) => error!("Error on PLI receive channel: {e:?}")
} }
} }
} }
@ -111,7 +111,7 @@ async fn main() {
_ = interval.tick() => interface.refresh().await, _ = interval.tick() => interface.refresh().await,
message = api_receiver.recv() => match message { message = api_receiver.recv() => match message {
Ok(message) => interface.process_request(message).await, Ok(message) => interface.process_request(message).await,
Err(e) => error!("Error on receive channel: {e:?}") Err(e) => error!("Error on Tesla receive channel: {e:?}")
} }
} }
} }