From e4a09ca5e5968cc742fcb6466e7540c653961877 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Sun, 20 Sep 2015 17:06:56 +0200 Subject: [PATCH] add notice log about MQTT connection --- ot-recorder.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ot-recorder.c b/ot-recorder.c index 55909a1..84357a7 100644 --- a/ot-recorder.c +++ b/ot-recorder.c @@ -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);