osx version of removing log statements