add notice log about MQTT connection

This commit is contained in:
Jan-Piet Mens
2015-09-20 17:06:56 +02:00
parent 7ab78eeb03
commit e4a09ca5e5
+6 -1
View File
@@ -1039,7 +1039,12 @@ int main(int argc, char **argv)
}
if (hosted) {
olog(LOG_NOTICE, "connecting to Hosted as clientID %s", utstring_body(clientid));
olog(LOG_INFO, "connecting to Hosted as clientID %s", utstring_body(clientid));
} else {
olog(LOG_INFO, "connecting to MQTT on %s:%d as clientID %s %s TLS",
hostname, port,
utstring_body(clientid),
(cafile) ? "with" : "without");
}
rc = mosquitto_connect(mosq, hostname, port, 60);