achied/fluent-plugin-nats — pull request #1 by sunghoaraipark (2013-02-15 08:56:19+00:00)
Title: vcap.cc.events message is ARRAY, not HASH

Thank you for the nats plugin.
It is really nice.

Just one thing.
time = msg_json["fluent_timestamp"] || Time.now.to_i
When nats message is vcap.cc.events, the type of msg_json is Array, not Hash.
So it fails.

if the line is only "time = Time.now.to_i"
It works with including vcap.cc.events messages.

Thank you.