diff --git a/rustfs/src/main.rs b/rustfs/src/main.rs index bd6d66d06..2e6760ed4 100644 --- a/rustfs/src/main.rs +++ b/rustfs/src/main.rs @@ -59,7 +59,10 @@ fn notify_systemd(state: &str) { let notify_state = match state { "ready" => NotifyState::Ready, "stopping" => NotifyState::Stopping, - _ => return, + _ => { + warn!("Unsupported state passed to notify_systemd: {}", state); + return; + }, }; if let Err(e) = notify(false, &[notify_state]) {