- #56 Fixed data logging for httprb v3 ([@tycooon])
- Cleaned up dependencies and requiring ruby version >= 2.2
- #53 Fix header logging
- Requiring
rack
explicitly so that plain ruby clients don't have to
- Added
enabled
configuration option (default: true, doh)
- Bugfix: Returning response for patron adapter
- Bugfix: No longer modifying post data in place for safe logging
-
Proper configuration!
If you're using any custom configuration, please replace any assignments of the type
# Old. Bad. Down with this sort of thing. HttpLog.options[:foo] = 'bar'
with the new configuration block syntax, e.g.
# Shiny. New. Ruby-ish. HttpLog.configure do |config| config.foo = 'bar' end
Please see the README for details. The old syntax will be dropped in version 1.0.0 (which will be the next version bump) and will raise a deprecation warning until then.
-
Dropped support for typhoeus
That only means typhoeus is no longer explictly tested; it will probably still work, depending on which adapter is used. With the default ethon adapter, the status code will probably not be logged, and there may be other issues. Typhoeus has its own logging facility, so it's just not worth the headache of trying to stay compatible.
-
Dropped support for log4r.
Log4r seems to be no longer maintained for some years; it was causing issues with ruby 2.4, so I dropped it.
-
Rounding benchmarks to microseconds. Because anything more is just silly.
-
Support for ruby 2.4
-
Support for latest versions of all remaining adapters
- optional prefix for request data
- support for httpclient 2.7
- support for latest version of
httprb
- changes
- binary data is no longer written to the log
- bug fixes
- consistently forcing encoding of response body to UTF-8
- considering
charset
part ofContent-Type
header when encoding - inspecting 'Content-Encoding' header for gzip decompression in all adapters