Closed OscarBarrett closed 10 years ago
Hi, yea this is a bug indeed. I've updated Yell a while ago and it seems that I did not update the gelf adapter. There's no need to change the hash keys - yell has an own method to doing this. I'll let you know when I've done the change.
Hey, just checking up on this again. I've seen your commits and it works, are there any blockers from getting a new version up on rubygems?
Just released v2.0.1
Thanks!
When using a yaml configuration file to initialize Yell loggers, the keys come through as strings instead of symbols (even when using symbolized keys in the yaml). Example configuration file:
Logging out options in
setup
returns the following:Compared with creating a logger using Yell.new:
This PR symbolizes the keys of the options hash, allowing the gelf adapter to properly initialize using values in the config file rather than just falling back to the defaults. It doesn't symbolize the gelf hash itself, but from my testing it works fine as long the base keys are symbolized.