From 6cdbd96b7feea8fe81e465983bbabdbe10956590 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Mon, 3 Mar 2014 13:57:07 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20m/fi?= =?UTF-8?q?chier/conf=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20m/log.p?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- m/fichier/conf | 2 +- m/log.py | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/m/fichier/conf b/m/fichier/conf index 9556a49..02f3e92 100644 --- a/m/fichier/conf +++ b/m/fichier/conf @@ -1,4 +1,4 @@ blind=1 camera=192.168.1.13 - +portCamera=80 portServ=80 diff --git a/m/log.py b/m/log.py index 6f60771..1147b6c 100644 --- a/m/log.py +++ b/m/log.py @@ -31,17 +31,16 @@ class Log(object): def printL(self,pMsg,pLvl): self.logger.log(pLvl,pMsg) if pLvl == 10 : - print bcolors.DEBUG + print bcolors.DEBUG + pMsg + bcolors.ENDC elif pLvl == 20 : - print bcolors.INFO + print bcolors.INFO + pMsg + bcolors.ENDC elif pLvl == 25 : - print bcolors.SUCCESS + print bcolors.SUCCESS + pMsg + bcolors.ENDC elif pLvl == 30 : - print bcolors.WARNING + print bcolors.WARNING + pMsg + bcolors.ENDC elif pLvl == 40 : - print bcolors.FAIL - print pMsg - print bcolors.ENDC + print bcolors.FAIL + pMsg + bcolors.ENDC + class bcolors: DEBUG = '\033[94m'