Remove logging

master
informatic 2017-01-20 23:22:07 +01:00
parent 32afe1f5b9
commit b384c2cec6
2 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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)