Don't remove #write from common_log_handler

This commit is contained in:
sdogruyol 2016-07-13 14:42:41 +03:00
parent 24e0824a9b
commit fb5ac9e0b6

View file

@ -16,6 +16,10 @@ class Kemal::CommonLogHandler < Kemal::BaseLogHandler
context
end
def write(message)
@handler << message
end
private def elapsed_text(elapsed)
minutes = elapsed.total_minutes
return "#{minutes.round(2)}m" if minutes >= 1