@@ -71,8 +71,7 @@ response ii settings Context{outputQ} mgr tconf th strm req rsp
7171 responseNoBody s hs = responseBuilderBody s hs mempty
7272
7373 responseBuilderBody s hs bdy = do
74− let !logact = logger s Nothing
75− writeIORef (streamLogger strm) logact
74+ logger s Nothing
7675 setThreadContinue tconf True
7776 let rsp' = ResponseBuilder s hs bdy
7877 out = OResponse strm rsp' (Oneshot True)
@@ -92,8 +91,7 @@ response ii settings Context{outputQ} mgr tconf th strm req rsp
9291 responseFile2XX s hs path mpart
9392 | isHead = responseNoBody s hs
9493 | otherwise = do
95− let !logact = logger s (filePartByteCount <$> mpart)
96− writeIORef (streamLogger strm) logact
94+ logger s (filePartByteCount <$> mpart)
9795 setThreadContinue tconf True
9896 let rsp' = ResponseFile s hs path mpart
9997 out = OResponse strm rsp' (Oneshot True)
@@ -107,8 +105,7 @@ response ii settings Context{outputQ} mgr tconf th strm req rsp
107105 body = byteString "File not found"
108106
109107 responseStreaming strmbdy = do
110− let !logact = logger s0 Nothing
111− writeIORef (streamLogger strm) logact
108+ logger s0 Nothing
112109 -- We must not exit this WAI application.
113110 -- If the application exits, streaming would be also closed.
114111 -- So, this work occupies this thread.