Nuke LIBSEAT_LOGLEVEL

This will be replaced with a libseat API to set the log level.
This commit is contained in:
Simon Ser 2020-08-27 15:56:15 +00:00 committed by Kenny Levinsen
parent 47d4b43f1a
commit 48b9bf4707
2 changed files with 1 additions and 15 deletions

View file

@ -37,18 +37,7 @@ struct libseat *libseat_open_seat(struct libseat_seat_listener *listener, void *
return NULL; return NULL;
} }
char *loglevel = getenv("LIBSEAT_LOGLEVEL"); log_init(LIBSEAT_LOG_LEVEL_SILENT);
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);
char *backend_type = getenv("LIBSEAT_BACKEND"); char *backend_type = getenv("LIBSEAT_BACKEND");
struct libseat *backend = NULL; struct libseat *backend = NULL;

View file

@ -41,9 +41,6 @@ client-side of the protocol.
| SEATD_SOCK | SEATD_SOCK
: File path : File path
: Informs libseat of the socket location, needed if it differs from `/run/seatd.sock` : 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 | SEATD_LOGLEVEL
: silent, error, info, debug : silent, error, info, debug
: Sets the seatd log level. Defaults to "error" : Sets the seatd log level. Defaults to "error"