Add debug code for Heka es_payload plugin.