modifié: m/log.py

This commit is contained in:
sidya82 2014-03-03 14:10:41 +01:00
parent 94bfdc25d0
commit dcf855bd93

View File

@ -35,15 +35,15 @@ class Log(object):
def printL(self,pMsg,pLvl): def printL(self,pMsg,pLvl):
if pLvl == 10 : if pLvl == 10 :
sys.stdout.write bcolors.DEBUG sys.stdout.write(bcolors.DEBUG)
elif pLvl == 20 : elif pLvl == 20 :
sys.stdout.write bcolors.INFO sys.stdout.write(bcolors.INFO)
elif pLvl == 25 : elif pLvl == 25 :
sys.stdout.write bcolors.SUCCESS sys.stdout.write(bcolors.SUCCESS)
elif pLvl == 30 : elif pLvl == 30 :
sys.stdout.write bcolors.WARNING sys.stdout.write(bcolors.WARNING)
elif pLvl == 40 : elif pLvl == 40 :
sys.stdout.write bcolors.FAIL sys.stdout.write(bcolors.FAIL)
self.logger.log(pLvl,pMsg) self.logger.log(pLvl,pMsg)
sys.stdout bcolors.ENDC sys.stdout bcolors.ENDC