also log.debug the error for easier debugging