|
@@ -12,7 +12,7 @@ if __name__ == "__main__":
|
12
|
12
|
if config.DEBUG:
|
13
|
13
|
report.appLoggingConfigure(None, None, ((config.APP_NAME, logging.DEBUG), ), fmt=report.SHORT_FMT, host='localhost', port=19996)
|
14
|
14
|
else:
|
15
|
|
- report.stdoutLoggingConfigure(((config.APP_NAME, logging.INFO)), report.SHORT_FMT)
|
|
15
|
+ report.stdoutLoggingConfigure(((config.APP_NAME, logging.INFO), ), report.SHORT_FMT)
|
16
|
16
|
#
|
17
|
17
|
mc = mqtt.mqtt_client(host=config.MQTT_SERVER, port=config.MQTT_PORT, username=config.MQTT_USER,
|
18
|
18
|
password=config.MQTT_PASSWORD, name=config.APP_NAME)
|