Graylog2/gelf-rb — pull request #18 by jridgway (2013-10-29 15:20:50+00:00)
Title: Rails.cache doesn't send a block apparently

```
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.