main: Subscribe to the logger scope 87/24487/4
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 8 May 2020 17:20:48 +0000 (20:20 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Tue, 12 May 2020 19:25:35 +0000 (22:25 +0300)
This is a no-op as the compositor isn't yet using the logging framework,
but will be added in subsequent patches.

Bug-AGL: SPEC-3352

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ieda47de45de621b095163d0e682e665c36484175

src/main.c

index df97b24..a3c1cb2 100644 (file)
@@ -1177,6 +1177,7 @@ int main(int argc, char *argv[])
        weston_log_set_handler(vlog, vlog_continue);
 
        logger = weston_log_subscriber_create_log(logfile);
+       weston_log_subscribe(log_ctx, logger, "log");
 
        if (load_config(&ivi.config, no_config, config_file) < 0)
                goto error_signals;