aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-08-27 15:56:15 +0000
committerKenny Levinsen <kl@kl.wtf>2020-08-28 01:21:57 +0200
commit48b9bf47075271c91097eba4bf8e9316aa33f9c8 (patch)
tree45523fca2de64a8f883c2bafd363e587e2f0a5cf
parent47d4b43f1a63ca83b7f2dd8bc7eb24f194ebb32f (diff)
Nuke LIBSEAT_LOGLEVEL
This will be replaced with a libseat API to set the log level.
-rw-r--r--libseat/libseat.c13
-rw-r--r--man/seatd.1.scd3
2 files changed, 1 insertions, 15 deletions
diff --git a/libseat/libseat.c b/libseat/libseat.c
index 1b6a99d..19f0e7f 100644
--- a/libseat/libseat.c
+++ b/libseat/libseat.c
@@ -37,18 +37,7 @@ struct libseat *libseat_open_seat(struct libseat_seat_listener *listener, void *
return NULL;
}
- char *loglevel = getenv("LIBSEAT_LOGLEVEL");
- enum libseat_log_level level = LIBSEAT_LOG_LEVEL_SILENT;
- if (loglevel != NULL) {
- if (strcmp(loglevel, "silent") == 0) {
- level = LIBSEAT_LOG_LEVEL_SILENT;
- } else if (strcmp(loglevel, "info") == 0) {
- level = LIBSEAT_LOG_LEVEL_INFO;
- } else if (strcmp(loglevel, "debug") == 0) {
- level = LIBSEAT_LOG_LEVEL_DEBUG;
- }
- }
- log_init(level);
+ log_init(LIBSEAT_LOG_LEVEL_SILENT);
char *backend_type = getenv("LIBSEAT_BACKEND");
struct libseat *backend = NULL;
diff --git a/man/seatd.1.scd b/man/seatd.1.scd
index 15b7b68..c18910d 100644
--- a/man/seatd.1.scd
+++ b/man/seatd.1.scd
@@ -41,9 +41,6 @@ client-side of the protocol.
| SEATD_SOCK
: File path
: Informs libseat of the socket location, needed if it differs from `/run/seatd.sock`
-| LIBSEAT_LOGLEVEL
-: silent, error, info, debug
-: Sets the libseat log level. Defaults to "silent"
| SEATD_LOGLEVEL
: silent, error, info, debug
: Sets the seatd log level. Defaults to "error"