Use flusher for Apache outputFormat

This commit is contained in:
MHova 2015-11-16 21:58:56 -08:00
parent 5548e7fe8c
commit d28375e069

View File

@ -98,7 +98,7 @@ mkRequestLogger RequestLoggerSettings{..} = do
case outputFormat of
Apache ipsrc -> do
getdate <- getDateGetter flusher
apache <- initLogger ipsrc (LogCallback callback (return ())) getdate
apache <- initLogger ipsrc (LogCallback callback flusher) getdate
return $ apacheMiddleware apache
Detailed useColors -> detailedMiddleware
(\str -> callback str >> flusher)