Skip to content

Commit

Permalink
[nrfconnect] Fixed logs configuration. (#16872)
Browse files Browse the repository at this point in the history
Default log level for Zephyr logger modules was changed to warning
and application logs using Zephyr logger directly disappeared.

Added CONFIG_MATTER_LOG_LEVEL for application log modules.
  • Loading branch information
kkasperczyk-no authored and pull[bot] committed Sep 29, 2023
1 parent 3d459ff commit 2308840
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion examples/all-clusters-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#define BUTTON_PUSH_EVENT 1
#define BUTTON_RELEASE_EVENT 0

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
K_MSGQ_DEFINE(sAppEventQueue, sizeof(AppEvent), APP_EVENT_QUEUE_SIZE, alignof(AppEvent));

static LEDWidget sStatusLED;
Expand Down
2 changes: 1 addition & 1 deletion examples/all-clusters-app/nrfconnect/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <logging/log.h>

LOG_MODULE_REGISTER(app);
LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);

using namespace ::chip;

Expand Down
2 changes: 1 addition & 1 deletion examples/light-switch-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ using namespace ::chip::app;
using namespace ::chip::Credentials;
using namespace ::chip::DeviceLayer;

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
namespace {
constexpr EndpointId kLightSwitchEndpointId = 1;
constexpr EndpointId kLightEndpointId = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#endif

#include <logging/log.h>
LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);

using namespace chip;
using namespace chip::app;
Expand Down
2 changes: 1 addition & 1 deletion examples/light-switch-app/nrfconnect/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <logging/log.h>

LOG_MODULE_REGISTER(app);
LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);

using namespace ::chip;

Expand Down
2 changes: 1 addition & 1 deletion examples/lighting-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include <logging/log.h>
#include <zephyr.h>

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);

using namespace ::chip;
using namespace ::chip::app;
Expand Down
2 changes: 1 addition & 1 deletion examples/lighting-app/nrfconnect/main/LightingManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <logging/log.h>
#include <zephyr.h>

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);

LightingManager LightingManager::sLight;

Expand Down
2 changes: 1 addition & 1 deletion examples/lighting-app/nrfconnect/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <usb/usb_device.h>
#endif

LOG_MODULE_REGISTER(app);
LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);

using namespace ::chip;

Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ using namespace ::chip::DeviceLayer;
namespace {
constexpr EndpointId kLockEndpointId = 1;

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
K_MSGQ_DEFINE(sAppEventQueue, sizeof(AppEvent), APP_EVENT_QUEUE_SIZE, alignof(AppEvent));
k_timer sFunctionTimer;

Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/nrfconnect/main/BoltLockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <logging/log.h>
#include <zephyr.h>

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);

static k_timer sLockTimer;

Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/nrfconnect/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <logging/log.h>

LOG_MODULE_REGISTER(app);
LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);

using namespace ::chip;

Expand Down
2 changes: 1 addition & 1 deletion examples/pigweed-app/nrfconnect/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <dk_buttons_and_leds.h>
#include <logging/log.h>

LOG_MODULE_REGISTER(app);
LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);

namespace {
LEDWidget sStatusLED;
Expand Down
2 changes: 1 addition & 1 deletion examples/platform/nrfconnect/Rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <kernel.h>

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);

#if defined(PW_RPC_ATTRIBUTE_SERVICE) && PW_RPC_ATTRIBUTE_SERVICE
#include "pigweed/rpc_services/Attributes.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/pump-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ using namespace ::chip::DeviceLayer;

namespace {

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
K_MSGQ_DEFINE(sAppEventQueue, sizeof(AppEvent), APP_EVENT_QUEUE_SIZE, alignof(AppEvent));
k_timer sFunctionTimer;

Expand Down
2 changes: 1 addition & 1 deletion examples/pump-app/nrfconnect/main/PumpManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <logging/log.h>
#include <zephyr.h>

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);

static k_timer sStartTimer;

Expand Down
2 changes: 1 addition & 1 deletion examples/pump-app/nrfconnect/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <logging/log.h>

LOG_MODULE_REGISTER(app);
LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);

using namespace ::chip;

Expand Down
2 changes: 1 addition & 1 deletion examples/pump-controller-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ using namespace ::chip::DeviceLayer;

namespace {

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);
K_MSGQ_DEFINE(sAppEventQueue, sizeof(AppEvent), APP_EVENT_QUEUE_SIZE, alignof(AppEvent));
k_timer sFunctionTimer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <logging/log.h>
#include <zephyr.h>

LOG_MODULE_DECLARE(app);
LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL);

static k_timer sStartTimer;

Expand Down
2 changes: 1 addition & 1 deletion examples/pump-controller-app/nrfconnect/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <logging/log.h>

LOG_MODULE_REGISTER(app);
LOG_MODULE_REGISTER(app, CONFIG_MATTER_LOG_LEVEL);

using namespace ::chip;

Expand Down
2 changes: 1 addition & 1 deletion src/test_driver/nrfconnect/main/runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
using namespace ::chip;
using namespace ::chip::DeviceLayer;

LOG_MODULE_REGISTER(runner);
LOG_MODULE_REGISTER(runner, CONFIG_MATTER_LOG_LEVEL);

void main(void)
{
Expand Down

0 comments on commit 2308840

Please sign in to comment.