Log after success or failure