From 07ceeeebe014374626904e5d7c8a20d1a45453fe Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 27 Aug 2020 15:56:16 +0000 Subject: Introduce libseat_set_log_level The default level is SILENT. log_init no longer takes an initial log level (so that calls to libseat_set_log_level prior to log_init work correctly). --- seatd/seatd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'seatd') diff --git a/seatd/seatd.c b/seatd/seatd.c index 71d6b2f..ce4d2bb 100644 --- a/seatd/seatd.c +++ b/seatd/seatd.c @@ -64,7 +64,8 @@ int main(int argc, char *argv[]) { level = LIBSEAT_LOG_LEVEL_DEBUG; } } - log_init(level); + log_init(); + libseat_set_log_level(level); const char *usage = "Usage: seatd [options]\n" "\n" -- cgit v1.2.3