when wrapping the body, body.close writes the log
commitbc1d1df38d7803ce9fdae05fc5129051eeed89e0
authorEric Wong <normalperson@yhbt.net>
Sun, 6 Jun 2010 00:43:34 +0000 (6 00:43 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 6 Jun 2010 05:19:34 +0000 (6 05:19 +0000)
treefda0e314119f27ed3ea4aa6848d653e2ff0070ed
parente4c3548e8ff4c95c697b4a30699e6f655d60f188
when wrapping the body, body.close writes the log

We no longer write the log out at the end of the body.each call.
This is a behavioral change, but fortunately all Rack servers
I've seen call body.close inside an ensure.

This allows us to later pass along the "to_path" method
and not rely on "each" to write the log.
ext/clogger_ext/clogger.c
lib/clogger/pure.rb
test/test_clogger.rb