modifié: m/log.py

This commit is contained in:
sidya82 2014-03-03 14:10:41 +01:00
parent 94bfdc25d0
commit dcf855bd93
1 changed files with 5 additions and 5 deletions

View File

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