diff --git a/proto2cpp.py b/proto2cpp.py index 96506aa..242bdcb 100644 --- a/proto2cpp.py +++ b/proto2cpp.py @@ -191,7 +191,7 @@ def log(self, string): ## @param string String to be written to error log file. # def logError(self, string): - if self.logLevel >= self.logError: + if self.logLevel >= self.logErrors: with open(self.errorLogFile, 'a') as theFile: theFile.write(string)