Skip to content
Permalink
Browse files

chore: print newline on Server exit only if logger is present

  • Loading branch information...
vladfaust committed Dec 25, 2018
1 parent 8ab3adb commit 7d4614167d66683ab94b5cf3a98ca9e07ef3d9ba
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/onyx-rest/server.cr
@@ -39,9 +39,8 @@ class Onyx::REST::Server < HTTP::Server
end

Signal::INT.trap do
puts "\n"

if logger = @logger
puts "\n"
io = IO::Memory.new
io << "".colorize(:red).mode(:bold) << " " << @name
io << " is shutting down!".colorize(:light_gray)

0 comments on commit 7d46141

Please sign in to comment.
You can’t perform that action at this time.