Closed ZhangYet closed 8 years ago
If you're just asking questions, please don't use GitHub issues but the Heka mailing list.
If you catch exceptions in your decoder, you can inject the exception message in the Heka pipeline and send it wherever you want:
local ok, msg = pcall(inject_message, ...)
if not ok then
inject_payload("txt", "error", msg)
end
Sorry for my bad habit. And this solves my problem. Thanks a lot
I fount it my decoder will crash in production environment. It throw err msg as below:
But it works well in my test envionment.
SO, is there any method to get information of my decoder while running in production environment? I mean since io is disabled in decoder/encoder etc, I can't use io to gather infomation from my decoder.