tagomoris/fluent-plugin-mysql

emitting numbers

Opened this issue · 2 comments

I'm using Python's fluent logger package to log jsons. When my json contains integer, I get the following error in fluent:
2016-06-01 11:41:02 +0300 [error]: plugin/in_forward.rb:300:rescue in on_read_msgpack: forward error error=#<NoMethodError: undefined method `slice' for <####>:Fixnum> error_class=NoMethodError
Is it by design?

My work around it was to convert the integers to strings before the logging

Is this issue related to fluent-plugin-mysql?

fluent-logger-python problem is here.
https://github.com/fluent/fluent-logger-python

I happened to come across this behavior today. A proposed fix is on Pull Request #39 .