more verbosity.

This commit is contained in:
Aleksandr Trushkin
2020-11-15 21:47:15 +03:00
parent 567512b16e
commit a9da81a975

View File

@ -71,6 +71,8 @@ async fn handler(
match command {
Command::Help => cx.answer(Command::descriptions()).send().await?,
Command::HostTemperature => {
info!("querying command {} with arg {}", console_command, console_arg);
let cmd = std::process::Command::new(&console_command)
.arg(&console_arg)
.stdout(std::process::Stdio::piped())
@ -88,6 +90,8 @@ async fn handler(
.await?
}
Command::RoomTemperature => {
info!("sending request to {}", dsn);
let response = match reqwest::get(&dsn).await {
Ok(response) => response,
Err(err) => {