Less warning while logging