Closed deanputney closed 8 years ago
For debug level logging a developer may log an object or class without having converted it to a string beforehand. This PR checks that the logged message has an encoding and converts it to the inspected string if not so it can be properly logged.
Thinks for your pull request.
I rewrite like this https://github.com/ruby/ruby/blob/trunk/lib/logger.rb#L516 and release v0.1.8.
For debug level logging a developer may log an object or class without having converted it to a string beforehand. This PR checks that the logged message has an encoding and converts it to the inspected string if not so it can be properly logged.