Remove unused logging code to simplify compilation