add sid to subscription manager traces

This commit is contained in:
Igor Katson 2024-08-27 23:29:58 +01:00
parent 5bb1fde46e
commit 2dedf26082
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -10,7 +10,7 @@ use std::{
time::Duration,
};
use tokio::sync::{broadcast::error::RecvError, Notify};
use tracing::{debug, error_span, warn, Instrument};
use tracing::{debug, error_span, trace, warn, Instrument};
pub struct Subscription {
pub url: url::Url,
@ -134,6 +134,7 @@ impl UpnpServerStateInner {
let seq = state.subscriptions.next_seq(&sid)?;
match res {
Ok(system_update_id) => {
trace!(system_update_id, "notifying SystemUpdateId update");
if let Err(e) = notify_subscription_system_update(
&url,
&sid,
@ -190,7 +191,7 @@ impl UpnpServerStateInner {
};
spawn_with_cancel(
error_span!(parent: pspan, "subscription-manager", %url),
error_span!(parent: pspan, "subscription-manager", sid, %url),
token,
subscription_manager,
);