aboutsummaryrefslogtreecommitdiff
path: root/seatd
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-08-27 15:56:16 +0000
committerKenny Levinsen <kl@kl.wtf>2020-08-28 01:21:57 +0200
commit07ceeeebe014374626904e5d7c8a20d1a45453fe (patch)
treea2e11abccf998199c01d2424f0a19eb85449f8f0 /seatd
parent48b9bf47075271c91097eba4bf8e9316aa33f9c8 (diff)
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).
Diffstat (limited to 'seatd')
-rw-r--r--seatd/seatd.c3
1 files changed, 2 insertions, 1 deletions
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"