Skip to content

Commit

Permalink
#1 Change method writeLogConsole to Write log when an error appears
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldraK committed Mar 10, 2017
1 parent 49712ec commit 839afa6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions macedonia/plugin/macedonia_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,8 @@ def writeLog(self,log):
self.consoleMessage(msg)
sys.exit(-1)

def writeLogConsole(self,msg):
if self.log:
self.writeLog(msg)

def writeLogConsole(self,msg,error=False):
if self.log or error:
self.__writeLog(msg)
if self.verbose:
self.consoleMessage(msg)
self.__consoleMessage(msg)

0 comments on commit 839afa6

Please sign in to comment.