diff options
author | xengineering <me@xengineering.eu> | 2025-03-21 22:23:32 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-03-21 22:23:32 +0100 |
commit | b912c63ca9724a31f57226a44e87954e4fbd46c4 (patch) | |
tree | d7bde8bce438e1fd416adbbbcd3efc64b8fc51a5 | |
parent | 07d694f3d21ffc1b69638b8732ffd630affc9768 (diff) | |
download | iot-contact-b912c63ca9724a31f57226a44e87954e4fbd46c4.tar iot-contact-b912c63ca9724a31f57226a44e87954e4fbd46c4.tar.zst iot-contact-b912c63ca9724a31f57226a44e87954e4fbd46c4.zip |
fw: syslog: Adjust log levels
This follows the pattern:
* ERR in error handler if statements
* DBG at top of each function and on demand
* INF at end of function
-rw-r--r-- | fw/src/syslog.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fw/src/syslog.c b/fw/src/syslog.c index 3291c0e..b1a1077 100644 --- a/fw/src/syslog.c +++ b/fw/src/syslog.c @@ -27,10 +27,12 @@ void l4_event_handler( uint32_t event, struct net_if *iface) { + LOG_DBG("Executing L4 event handler"); + switch (event) { case NET_EVENT_L4_CONNECTED: - LOG_INF("Network connected"); k_sem_give(&network_connected); + LOG_INF("Network connected"); break; case NET_EVENT_L4_DISCONNECTED: LOG_INF("Network disconnected"); @@ -51,10 +53,12 @@ SYS_INIT(init_network_monitoring, APPLICATION, 0); int init_syslog(void) { - LOG_INF("Waiting for network ..."); + LOG_DBG("Initializing syslog logging backend"); + + LOG_DBG("Waiting for network ..."); k_sem_take(&network_connected, K_FOREVER); - LOG_INF("Enabling syslog backend"); + LOG_DBG("Enabling syslog backend"); const struct log_backend *backend = log_backend_net_get(); if (log_backend_is_active(backend) == false) { /* flush log messages to ensure first syslog message is reproducible */ |