modifié: m/log.py

This commit is contained in:
sidya82 2014-03-03 14:21:31 +01:00
parent 947b441dd9
commit d3efa035bb

View File

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