Log command if not cancelled