From 9d84d51975e98b895a99e0fd2b13ea86b825b47c Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Tue, 5 Jul 2016 20:15:36 +0300 Subject: [PATCH] No need to rewind STDOUT and File handler in CommonLogHandler --- src/kemal/common_log_handler.cr | 1 - 1 file changed, 1 deletion(-) diff --git a/src/kemal/common_log_handler.cr b/src/kemal/common_log_handler.cr index 256fcca..8a6668f 100644 --- a/src/kemal/common_log_handler.cr +++ b/src/kemal/common_log_handler.cr @@ -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