From ac3efe3427eb924b6f003ba9364d1437ff9bc2d9 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Mon, 3 Mar 2014 12:11:19 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20m/lo?= =?UTF-8?q?g.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- m/log.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/m/log.py b/m/log.py index d26c040..cb98bb7 100644 --- a/m/log.py +++ b/m/log.py @@ -19,18 +19,18 @@ class Log(object): dest.write("%s,%s,%s,%s\n" % (d,pLog,pMsg,pIP)) - def printL(self,pMsg,pLvl) + def printL(self,pMsg,pLvl): logger.log(pMsg, pLvl) - if pLvl == 10 - print bcolors.DEBUG , - elif pLvl == 20 : - print bcolors.INFO , - elif pLvl == 30 : - print bcolors.WARNING , - elif pLvl == 40 : - print bcolors.FAIL , - print pMsg - print bcolors.ENDC , + if pLvl == 10 + print bcolors.DEBUG , + elif pLvl == 20 : + print bcolors.INFO , + elif pLvl == 30 : + print bcolors.WARNING , + elif pLvl == 40 : + print bcolors.FAIL , + print pMsg + print bcolors.ENDC , }