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