We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c557b commit 8ce4996Copy full SHA for 8ce4996
subsys/logging/backends/log_backend_net.c
@@ -338,9 +338,18 @@ static void panic(struct log_backend const *const backend)
338
panic_mode = true;
339
}
340
341
+/* After initialization of the logger, this function avoids
342
+ * the logger subsys to enable it.
343
+ */
344
+static int backend_ready(const struct log_backend *const backend)
345
+{
346
+ return log_backend_is_active(backend) ? 0 : -EAGAIN;
347
+}
348
+
349
const struct log_backend_api log_backend_net_api = {
350
.panic = panic,
351
.init = init_net,
352
+ .is_ready = backend_ready,
353
.process = process,
354
.format_set = format_set,
355
};
0 commit comments