Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth: Mesh: Change log lvl for element_model_recv #72869

Conversation

Andrewpini
Copy link
Collaborator

Changes the log level from ERR to DBG for element_model_recv for the following cases:

  • Element does not have the appkey for incoming message.
  • Element does not have destination address for incoming meesage.

When the received message is for a group address, element_model_recv is called for all elements on the device. One or more elements may contain a model that is subscribing to this address. If more than one element contains the same model. but they do not all share the same application key as the incoming message is encrypted with, or they do not all subscribe to the same group address, then the log will show error message for these elements, which is misleading.

Changes the log level from ERR to DBG for element_model_recv for the
following cases:
- Element does not have the appkey for incoming message.
- Element does not have destination address for incoming meesage.

When the received message is for a group address, element_model_recv
is called for all elements on the device. One or more elements may contain
a model that is subscribing to this address. If more than one element
contains the same model. but they do not all share the same application
key as the incoming message is encrypted with, or they do not all
subscribe to the same group address, then the log will show error
message for these elements, which is misleading.

Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
@Andrewpini Andrewpini force-pushed the Fix_access_log_lvl_for_group_addr_recv branch from 2e0f2b6 to 58da698 Compare May 16, 2024 11:29
@jhedberg jhedberg merged commit f8bbf75 into zephyrproject-rtos:main May 20, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants