better logging for elasticsearch failures