mirror of
https://git.alemi.dev/mumble-stats-api.git
synced 2024-11-22 16:04:49 +01:00
chore: log starting/stopping ntfy worker
This commit is contained in:
parent
8c1c98a197
commit
df185e2517
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,7 @@ async fn main() {
|
||||||
|
|
||||||
#[cfg(feature = "ntfy")]
|
#[cfg(feature = "ntfy")]
|
||||||
if let Some(topic) = args.topic {
|
if let Some(topic) = args.topic {
|
||||||
|
tracing::info!("starting ntfy worker");
|
||||||
let events = session.events();
|
let events = session.events();
|
||||||
let target = format!("{}/{topic}", args.ntfy);
|
let target = format!("{}/{topic}", args.ntfy);
|
||||||
tokio::spawn(async move { handle_ntfy(target, events).await });
|
tokio::spawn(async move { handle_ntfy(target, events).await });
|
||||||
|
@ -147,6 +148,7 @@ async fn handle_ntfy(target: String, mut sub: broadcast::Receiver<session::Sessi
|
||||||
tracing::debug!("events channel closed: {e}");
|
tracing::debug!("events channel closed: {e}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
tracing::info!("stopping ntfy worker");
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn handle_ws(mut socket: WebSocket, mut sub: broadcast::Receiver<session::SessionEvent>) {
|
async fn handle_ws(mut socket: WebSocket, mut sub: broadcast::Receiver<session::SessionEvent>) {
|
||||||
|
|
Loading…
Reference in a new issue