Fixed the ElasticSearchPersistWriter

I can log it.