diff options
author | Loïc Collignon <loic.collignon@iot.bzh> | 2018-08-31 08:29:48 +0200 |
---|---|---|
committer | Loïc Collignon <loic.collignon@iot.bzh> | 2018-08-31 08:29:48 +0200 |
commit | 9a2509a3830c6ca481c56c626a2d016750bb1c0f (patch) | |
tree | 409f5e1ebde8b3e5d10a01f9fc58c9403d14353d /ahl-binding/role.cpp | |
parent | 11d2ae972c434453f09a7ffe66a8c202efbce2a5 (diff) |
Lower verbosity
Reduced the verbosity by using more approriate log level. All message
can still be seen by increasing the verbosity of the service.
Bug: SPEC-1688
Change-Id: I584ef1a594536eb91b9c4d74885192763a85bdcf
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'ahl-binding/role.cpp')
-rw-r--r-- | ahl-binding/role.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ahl-binding/role.cpp b/ahl-binding/role.cpp index 1b60a40..a122fc2 100644 --- a/ahl-binding/role.cpp +++ b/ahl-binding/role.cpp @@ -135,7 +135,7 @@ int role_t::apply_policy(afb_request* req) json_object_get(i.args()); json_object* result = nullptr; - AFB_DYNAPI_NOTICE(ahl_binding_t::instance().handle(), + AFB_DYNAPI_DEBUG(ahl_binding_t::instance().handle(), "Call '%s'/'%s' '%s", r.hal().c_str(), r.stream().c_str(), json_object_to_json_string(arg)); @@ -144,7 +144,7 @@ int role_t::apply_policy(afb_request* req) afb_request_fail(req, "Failed to call 'ramp' action on stream", nullptr); return -1; } - AFB_DYNAPI_NOTICE(ahl_binding_t::instance().handle(), + AFB_DYNAPI_DEBUG(ahl_binding_t::instance().handle(), "POLICY: Applying a ramp to '%s' stream because '%s' is opened and have higher priority!", r.stream().c_str(), stream_.c_str()); } @@ -210,7 +210,7 @@ void role_t::open(afb_request* r, json_object* o) role_t * role = (role_t*) arg; afb_dynapi * api = ahl_binding_t::instance().handle(); - AFB_DYNAPI_NOTICE(api, "Released role %s\n", role->uid_.c_str()); + AFB_DYNAPI_DEBUG(api, "Released role %s\n", role->uid_.c_str()); role->opened_ = false; // send a mute command to the HAL. We cannot reuse the do_mute function, @@ -306,7 +306,7 @@ void role_t::volume(afb_request* r, json_object* o) } else { - AFB_DYNAPI_NOTICE(api, "Granted special audio-mixer permission to change volume"); + AFB_DYNAPI_DEBUG(api, "Granted special audio-mixer permission to change volume"); } json_object* value; |