Elastic debug add debug logging for elastic