Removes obsolete log statements