log full error chain in a couple spots

This commit is contained in:
Scott Lamb 2025-03-06 21:05:43 -08:00
parent 284a3dd5a9
commit f894f889be
2 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@ impl Segment {
.lock()
.with_recording_playback(self.s.id, &mut |playback| self.build_index(playback))
.map_err(|err| {
error!(%err, recording_id = %self.s.id, "unable to build index for segment");
error!(err = %err.chain(), recording_id = %self.s.id, "unable to build index for segment");
})
})
.as_deref()

View File

@ -60,7 +60,7 @@ where
.await;
if let Err(err) = handler(&mut ws).await {
// TODO: use a nice JSON message format for errors.
tracing::error!(%err, "closing with error");
tracing::error!(err = %err.chain(), "closing with error");
let _ = ws
.send(tungstenite::Message::Text(err.to_string().into()))
.await;