diff --git a/m/log.py b/m/log.py index 96a4524..0b9766f 100644 --- a/m/log.py +++ b/m/log.py @@ -24,9 +24,10 @@ class Log(object): self.logger.addHandler(file_handler_error) steam_handler = logging.StreamHandler() - steam_handler.setLevel(logging.DEBUG) + steam_handler.setLevel(logging.NOTSET) self.logger.addHandler(steam_handler) + def printL(self,pMsg,pLvl): if pLvl == 10 : pMsg = bcolors.DEBUG + pMsg + bcolors.ENDC diff --git a/superTornado.py b/superTornado.py index 1825bac..11d5a6a 100644 --- a/superTornado.py +++ b/superTornado.py @@ -135,7 +135,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): data = f.read() encoded = base64.b64encode(data) self.write_message(encoded) - log.printL( "->Data send : " + self.request.remote_ip, 10) + log.printL( "->Data send : " + self.request.remote_ip, 20) except Exception, e : log.printL(e.value,40) self.write_message("error")