From b384c2cec65b88e0ae9042187ac129844e94051a Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Fri, 20 Jan 2017 23:22:07 +0100 Subject: [PATCH] Remove logging --- main.py | 2 +- spejsiot/manager.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/main.py b/main.py index 822a64b..84e2db6 100644 --- a/main.py +++ b/main.py @@ -10,7 +10,7 @@ logging.basicConfig(level=logging.DEBUG, format='[%(asctime)-15s] %(name)-10s %( app = flask.Flask(__name__) app.config['DISABLE_GUI'] = True -app.config['PORT'] = 5000 +app.config['PORT'] = 5100 app.config['BROKER'] = ('mqtt.waw.hackerspace.pl', 1883) app.config['PREFIX'] = 'iot/' app.config['TEMPLATES_AUTO_RELOAD'] = True diff --git a/spejsiot/manager.py b/spejsiot/manager.py index bb1a8bf..62337e9 100644 --- a/spejsiot/manager.py +++ b/spejsiot/manager.py @@ -43,7 +43,6 @@ class SpejsiotManager(mqtt.Client): def run(self, broker, port): self.connect(broker, port, 60) self.loop_start() - print(self.on_connect) def on_message(self, client, userdata, msg): try: @@ -85,6 +84,3 @@ class SpejsiotManager(mqtt.Client): return False return node.set(endpoint, prop, value) - - def on_log(self, client, userdata, level, buf): - self.logger.debug('[%r] %r', level, buf)