Removing debug code from logMsg()