Log duration returned with error