fix compatibility with recent versions of elastigo

also added elasticsearch response to debug mode output