From 13bf8b5e20a266333be6e107bbdf805167d2e4fd Mon Sep 17 00:00:00 2001 From: Arshan Hashemi Date: Mon, 16 Dec 2019 14:29:55 -0800 Subject: [PATCH] Fixing typo Comparison was with method logError instead of variable self.logErrors --- proto2cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)