No need to rewind STDOUT and File handler in CommonLogHandler

This commit is contained in:
Sdogruyol 2016-07-05 20:15:36 +03:00
parent ae25d0a774
commit 9d84d51975

View file

@ -19,7 +19,6 @@ class Kemal::CommonLogHandler < Kemal::BaseLogHandler
call_next(context)
elapsed_text = elapsed_text(Time.now - time)
@handler << time << " " << context.response.status_code << " " << context.request.method << " " << context.request.resource << " " << elapsed_text << "\n"
@handler.rewind
context
end