Fixed the ElasticSearchPersistWriter

log instead or print