Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve error msg on timeout opening stream
Before, it'd look like the following, as mentioned in #331: ``` 2024-12-09T20:53:24.853572 WARN s-CP3PRO-main streamer{stream="CP3PRO-main"}: moonfire_nvr::streamer: sleeping for 1 s after error err=UNKNOWN caused by: deadline has elapsed ``` ...which isn't as clear as it could be, particularly if you don't notice the `caused by` bit. After, it should look more like the following: ``` 2024-12-09T20:53:24.853572 WARN s-CP3PRO-main streamer{stream="CP3PRO-main"}: moonfire_nvr::streamer: sleeping for 1 s after error err=DEADLINE_EXCEEDED unable to play stream and get first frame within PT30S caused by: deadline has elapsed ```
- Loading branch information