afb-apiset: Reorder priority of messages 47/17247/1
authorJose Bollo <jose.bollo@iot.bzh>
Tue, 16 Oct 2018 17:58:03 +0000 (19:58 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Tue, 16 Oct 2018 17:58:03 +0000 (19:58 +0200)
The message before starting has now a greater
priority than the one stating that start
completed. Expecting that in case of problem
it wil be cleaner.

Change-Id: I2c27eb70f218d0492291c3eab4f8396ab5a6c093
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
src/afb-apiset.c

index 332d52d..2df3c59 100644 (file)
@@ -784,7 +784,7 @@ static int start_api(struct api_desc *api)
                return -1;
        }
 
-       INFO("API %s starting...", api->name);
+       NOTICE("API %s starting...", api->name);
        api->status = EBUSY;
        rc = start_array_classes(&api->require.classes);
        if (rc < 0)
@@ -803,7 +803,7 @@ static int start_api(struct api_desc *api)
                api->status = errno ?: ECANCELED;
                return -1;
        }
-       NOTICE("API %s started", api->name);
+       INFO("API %s started", api->name);
        api->status = 0;
        return 0;
 }