afb-supervision: Improve messages 64/23164/1
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 2 Dec 2019 09:15:24 +0000 (10:15 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 3 Dec 2019 17:51:51 +0000 (18:51 +0100)
The messages prompted when the supervisor is
absent were of to high priority.

Bug-AGL: SPEC-2968

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: Ic53a3039c2d3ed5be0138ec3215d58e27758a79c

src/afb-supervision.c

index 259b256..7b9ee64 100644 (file)
@@ -161,14 +161,14 @@ static void try_connect_supervisor()
 
        /* check existing path */
        if (supervisor_socket_path[0] != '@' && access(supervisor_socket_path, F_OK)) {
-               NOTICE("Can't acces socket path %s: %m", supervisor_socket_path);
+               INFO("Can't acces socket path %s: %m", supervisor_socket_path);
                goto end;
        }
 
        /* socket connection */
        fd = open_supervisor_socket(supervisor_socket_path);
        if (fd < 0) {
-               NOTICE("Can't connect supervision socket to %s: %m", supervisor_socket_path);
+               INFO("Can't connect supervision socket to %s: %m", supervisor_socket_path);
                goto end;
        }