Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: reduce logspam about wait duration for events
Lars Wirzenius committed 1 year ago
commit e29dd23f75d07d17e853893f2f23833c69280a94
parent b46e9493a7bb4d990ec37e0e633e53c7deeb4101
1 file changed +4 -4
modified src/queueproc.rs
@@ -58,6 +58,10 @@ impl QueueProcessor {
    }

    fn process_until_shutdown(&mut self) -> Result<(), QueueError> {
+
        info!(
+
            "wait about {} seconds to check for events to process",
+
            WAIT_FOR_EVENTS_DURATION.as_secs()
+
        );
        let mut done = false;
        while !done {
            info!("Looking for an event to process");
@@ -126,10 +130,6 @@ impl QueueProcessor {
    }

    fn wait_for_events(&self) {
-
        info!(
-
            "wait about {} seconds to check for events to process",
-
            WAIT_FOR_EVENTS_DURATION.as_secs()
-
        );
        sleep(WAIT_FOR_EVENTS_DURATION);
    }
}