mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-24 06:05:55 -05:00
improve some log msgs' readability
This commit is contained in:
parent
78bafb01f6
commit
3de605be6c
@ -217,7 +217,7 @@ In the latter case, you'll likely see a `getting next packet took PT...S!`
|
||||
message as described above.
|
||||
|
||||
```
|
||||
W20210309 00:28:55.527 s-courtyard-sub moonfire_nvr::streamer] courtyard-sub: sleeping for Duration { secs: 1, nanos: 0 } after error: End of file
|
||||
W20210309 00:28:55.527 s-courtyard-sub moonfire_nvr::streamer] courtyard-sub: sleeping for PT1S after error: End of file
|
||||
(set environment variable RUST_BACKTRACE=1 to see backtraces)
|
||||
```
|
||||
|
||||
@ -264,7 +264,7 @@ If Moonfire NVR runs out of disk space on a sample file directory, recording
|
||||
will be stuck and you'll see log messages like the following:
|
||||
|
||||
```
|
||||
W20210401 11:21:07.365 s-driveway-main moonfire_base::clock] sleeping for Duration { secs: 1, nanos: 0 } after error: No space left on device (os error 28)
|
||||
W20210401 11:21:07.365 s-driveway-main moonfire_base::clock] sleeping for PT1S after error: No space left on device (os error 28)
|
||||
```
|
||||
|
||||
If something else used more disk space on the filesystem than planned, just
|
||||
|
@ -44,7 +44,7 @@ where
|
||||
};
|
||||
let sleep_time = Duration::seconds(1);
|
||||
warn!(
|
||||
"sleeping for {:?} after error: {}",
|
||||
"sleeping for {} after error: {}",
|
||||
sleep_time,
|
||||
crate::error::prettify_failure(&e)
|
||||
);
|
||||
|
@ -358,7 +358,7 @@ impl Opener for RetinaOpener {
|
||||
deadline = tokio::time::Instant::now() + RETINA_TIMEOUT;
|
||||
if v.loss > 0 {
|
||||
log::warn!(
|
||||
"{}: lost {} RTP packets @ {:?}",
|
||||
"{}: lost {} RTP packets @ {}",
|
||||
&label,
|
||||
v.loss,
|
||||
v.start_ctx()
|
||||
|
@ -95,7 +95,7 @@ where
|
||||
if let Err(e) = self.run_once() {
|
||||
let sleep_time = time::Duration::seconds(1);
|
||||
warn!(
|
||||
"{}: sleeping for {:?} after error: {}",
|
||||
"{}: sleeping for {} after error: {}",
|
||||
self.short_name,
|
||||
sleep_time,
|
||||
base::prettify_failure(&e)
|
||||
|
Loading…
Reference in New Issue
Block a user