Added more specific error msg for log-api.