Skip to content

Commit

Permalink
chore: print newline on Server exit only if logger is present
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfaust committed Dec 25, 2018
1 parent 8ab3adb commit 7d46141
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/onyx-rest/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d46141

Please sign in to comment.