add sid to subscription manager traces
This commit is contained in:
parent
5bb1fde46e
commit
2dedf26082
1 changed files with 3 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ use std::{
|
||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
use tokio::sync::{broadcast::error::RecvError, Notify};
|
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 struct Subscription {
|
||||||
pub url: url::Url,
|
pub url: url::Url,
|
||||||
|
|
@ -134,6 +134,7 @@ impl UpnpServerStateInner {
|
||||||
let seq = state.subscriptions.next_seq(&sid)?;
|
let seq = state.subscriptions.next_seq(&sid)?;
|
||||||
match res {
|
match res {
|
||||||
Ok(system_update_id) => {
|
Ok(system_update_id) => {
|
||||||
|
trace!(system_update_id, "notifying SystemUpdateId update");
|
||||||
if let Err(e) = notify_subscription_system_update(
|
if let Err(e) = notify_subscription_system_update(
|
||||||
&url,
|
&url,
|
||||||
&sid,
|
&sid,
|
||||||
|
|
@ -190,7 +191,7 @@ impl UpnpServerStateInner {
|
||||||
};
|
};
|
||||||
|
|
||||||
spawn_with_cancel(
|
spawn_with_cancel(
|
||||||
error_span!(parent: pspan, "subscription-manager", %url),
|
error_span!(parent: pspan, "subscription-manager", sid, %url),
|
||||||
token,
|
token,
|
||||||
subscription_manager,
|
subscription_manager,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue