Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) allow loggin of frozen strings
If a frozen string was passed into the logging routines, it would fail with an exception about strings being frozen. This change allows frozen strings to be logged. For example: irb(main):001:0> foo = "hello there" => "hello there" irb(main):002:0> foo.freeze => "hello there" irb(main):003:0> foo.to_s.force_encoding('UTF-8') RuntimeError: can't modify frozen String from (irb):3:in `force_encoding' from (irb):3 from /Users/jnewman/.rbenv/versions/2.3.1/bin/irb:11:in `<main>' irb(main):004:0> foo.to_s.dup.force_encoding('UTF-8') => "hello there"
- Loading branch information