graylog-labs / gelf-rb

Ruby GELF library (Graylog Extended Log Format)
https://rubygems.org/gems/gelf
MIT License
153 stars 104 forks source link

Rails.cache doesn't send a block apparently #18

Closed jridgway closed 8 years ago

jridgway commented 10 years ago
irb(main):001:0> Rails.cache.write 'testing123', 'sdfsfddf'
LocalJumpError: no block given (yield)
    from /mnt/rambaldi-production/shared/bundle/ruby/2.0.0/gems/gelf-1.4.0/lib/gelf/logger.rb:19:in `add'
    from /mnt/rambaldi-production/shared/bundle/ruby/2.0.0/gems/gelf-1.4.0/lib/gelf/logger.rb:48:in `debug'
    from /mnt/rambaldi-production/releases/20131028225144/config/initializers/graylog.rb:13:in `block in method_missing'
...

https://github.com/rubber/rubber/issues/410

I simply added a check for a block given.

joschi commented 9 years ago

Thanks for this patch!

Could you please sign the TORCH Contributor Agreement as outlined in CONTRIBUTING.md and send it to hello@torch.sh? Other than that we're good to go.

milgner commented 8 years ago

This was fixed in some past release, closing the PR.