strip logging comments