remove unnedded lines from logging