||
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -71,9 +71,9 @@ impl NeoCamMdThread {
|
||||
let watcher = watcher.clone();
|
||||
Box::pin(
|
||||
async move {
|
||||
let mut md = cam.listen_on_motion().await.with_context("Error in getting MD listen_on_motion")?;
|
||||
let mut md = cam.listen_on_motion().await.with_context(|| "Error in getting MD listen_on_motion")?;
|
||||
loop {
|
||||
let event = md.next_motion().await.with_context("Error in getting MD next_motion")?;
|
||||
let event = md.next_motion().await.with_context(|| "Error in getting MD next_motion")?;
|
||||
match event {
|
||||
MotionStatus::Start(at) => {
|
||||
watcher.send_replace(
|
||||
|
||||
@@ -128,7 +128,7 @@ impl NeoMediaFactoryImpl {
|
||||
match new_media {
|
||||
Ok(new_media) => Ok(new_media),
|
||||
Err(e) => {
|
||||
log::debug!("Media source is currently restarting");
|
||||
log::debug!("Media source is currently restarting: {e:?}");
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user