Allow for disabling the shutdown message (#292)

Allow for disabling the shutdown message
This commit is contained in:
Michael Barrett 2017-01-18 07:55:33 -05:00 committed by Serdar Dogruyol
parent 209a9e576c
commit c08bf71d88
3 changed files with 12 additions and 2 deletions

View file

@ -41,7 +41,7 @@ module Kemal
# Test environment doesn't need to have signal trap, built-in images, and logging.
unless config.env == "test"
Signal::INT.trap {
log "Kemal is going to take a rest!\n"
log "Kemal is going to take a rest!\n" if config.shutdown_message
Kemal.stop
exit
}