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

[logging] Refactored logged messages #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kkasperczyk-no
Copy link
Owner

Problem

Many messages are logged in the scope that doesn't seem to be appropriate (errors as progress, very detail info as progress etc.)

Change overview

  • Briefly reviewed ChipLog calls and changed scopes where it
    seemed to be valuable

For nrfconnect:

  • Added setting gn chip logging flags depending on Kconfig
    CONFIG_MATTER_LOG_LEVEL option
  • Disabled not used shell modules
  • Changed Zephyr modules default log level from info to warning
    (all Zephyr modules are set to warning and only those that are
    important are set to info)
  • Changed log level for Matter messages from debug to info.

@kkasperczyk-no
Copy link
Owner Author

Memory comparison for upstream lock-app on nRF52840dk with default configuration:

  • Disabling not used shell modules - 10,89 kB
  • Changing default log level from info to warning - 1,08 kB
  • Changing Matter logs level from debug to info + logs refactor - 14,03 kB

Summary: gained 26,02 kB

Copy link
Collaborator

@Damian-Nordic Damian-Nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we want to switch to the INFO level now, but I'll let others to comment on that :)

config/nrfconnect/chip-module/CMakeLists.txt Outdated Show resolved Hide resolved
config/nrfconnect/app/sample-defaults.conf Show resolved Hide resolved
Many messages are logged in the scope that doesn't seem to be
appropriate (errors as progress, very detail info as progress etc.)

* Briefly reviewed ChipLog calls and changed scopes where it
seemed to be valuable

For nrfconnect:
* Added setting gn chip logging flags depending on Kconfig
CONFIG_MATTER_LOG_LEVEL option
* Disabled not used shell modules
* Changed Zephyr modules default log level from info to warning
(all Zephyr modules are set to warning and only those that are
important are set to info)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants