diff --git a/src/kemal.cr b/src/kemal.cr index cec46aeb..843f89e4 100644 --- a/src/kemal.cr +++ b/src/kemal.cr @@ -89,10 +89,10 @@ module Kemal end private def self.setup_trap_signal - Process.on_interrupt { + Process.on_interrupt do log "#{Kemal.config.app_name} is going to take a rest!" if Kemal.config.shutdown_message Kemal.stop exit - } + end end end