From b3c1fff1dda6c1266094e320998f15d2bea0846c Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Fri, 5 Jan 2018 00:29:01 +0100 Subject: [PATCH] sway main: init old log system until end of switch to wlr_log We need to keep the old log init if we do not want all current calls to sway_log to be silent --- sway/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sway/main.c b/sway/main.c index c18e26775..527bfde97 100644 --- a/sway/main.c +++ b/sway/main.c @@ -16,6 +16,7 @@ #include #endif #include +void init_log(log_importance_t verbosity); // log.h, but can't include because of conflict #include "sway/config.h" #include "sway/server.h" #include "sway/layout.h" @@ -331,10 +332,13 @@ int main(int argc, char **argv) { // TODO: switch logging over to wlroots? if (debug) { wlr_log_init(L_DEBUG, NULL); + init_log(L_DEBUG); } else if (verbose || validate) { wlr_log_init(L_INFO, NULL); + init_log(L_INFO); } else { wlr_log_init(L_ERROR, NULL); + init_log(L_ERROR); } if (optind < argc) { // Behave as IPC client