Update __init__.py

This commit is contained in:
tkl 2018-02-04 07:18:47 +00:00
parent 9a0a167fb3
commit f97d07913d

View File

@ -19,7 +19,7 @@ def main():
Entry point for mqtt logger. Entry point for mqtt logger.
''' '''
logging.basicConfig(format=LOG_FORMAT, filename=OWN_LOG_FILE) logging.basicConfig(format=LOG_FORMAT, filename=OWN_LOG_FILE)
conn = mqtt.Mqtt(hostname='gitlab', subscribe=['#']) conn = mqtt.Mqtt(hostname='localhost', subscribe=['#'])
if conn.connect() is False: if conn.connect() is False:
logging.error('couldn\'t connect...') logging.error('couldn\'t connect...')
return 1 return 1