zlogger: dont kill the daemon 68/304568/1
authorMichal Bloch <m.bloch@samsung.com>
Tue, 16 Jan 2024 15:53:29 +0000 (16:53 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Thu, 18 Jan 2024 11:25:29 +0000 (12:25 +0100)
Change-Id: I13168087ef460e74c203ab0f0311b91f6f2421e9

src/logger/logger.c

index 84fbac0..17c6805 100644 (file)
@@ -896,12 +896,11 @@ int prepare_config_data(struct logger_config_data *data)
                        g_backend.lazy_polling_sleep = 1;
 
        } else if (!strcmp(backend, "zero-copy")) {
-               /* HACK: This essentially skips reading the most important configuration fields
-                * (buffer reading and persistent logs) while ensuring the variables are initialized.
-                * This will result in daemon quitting. Hopefully we will either reenable some of these
-                * in the future or at least make it exit more gracefully (TODO), but for now this is ok. */
+               /* At some point the daemon should learn how to read external
+                * logs for the purpose of writing persistent /var/log/files.
+                *
+                * For now, let it just handle KMSG. */
                g_backend.use_logger_by_default = false;
-               goto end;
        } else {
                ret = -ENOENT;
                goto end;