Compare commits
2 commits
c4782814bb
...
8c4c3cb78e
Author | SHA1 | Date | |
---|---|---|---|
Alex Janka | 8c4c3cb78e | ||
Alex Janka | 15c03d0499 |
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1178,7 +1178,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "homekit-exporter"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"clap",
|
||||
|
|
|
@ -328,9 +328,17 @@ impl DeviceConnection {
|
|||
loop {
|
||||
match self.socket.as_mut() {
|
||||
None => {
|
||||
log::info!("{}reconnecting...", formatted_name(&self.name));
|
||||
self.connect().await?;
|
||||
log::info!("{}reconnected", formatted_name(&self.name));
|
||||
log::warn!("{}reconnecting...", formatted_name(&self.name));
|
||||
match self.connect().await {
|
||||
Ok(_) => {
|
||||
log::warn!("{}reconnected", formatted_name(&self.name));
|
||||
continue;
|
||||
}
|
||||
Err(e) => {
|
||||
log::error!("{}error {e} reconnecting", formatted_name(&self.name));
|
||||
return Err(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Some(socket) => {
|
||||
for (aid, data) in &mut self.accessories {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "homekit-exporter"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
edition = "2021"
|
||||
license = "Apache-2.0"
|
||||
description = "Prometheus exporter for HomeKit sensors"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Alex Janka <alex@alexjanka.com>
|
||||
|
||||
pkgname=homekit-logger
|
||||
pkgver=0.6.0
|
||||
pkgver=0.6.1
|
||||
pkgrel=1
|
||||
pkgdesc="Prometheus exporter for HomeKit sensors"
|
||||
arch=('x86_64' 'aarch64')
|
||||
|
|
|
@ -118,7 +118,7 @@ pub async fn metrics(
|
|||
}
|
||||
}
|
||||
|
||||
Some((return_string, types_seen))
|
||||
Some((return_string, types_seen))
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue