small alteration to logging