libseat: Use LIBSEAT_LOGLEVEL instead of SEATD_LOGLEVEL

This commit is contained in:
Kenny Levinsen 2020-08-03 02:43:13 +02:00
parent e25688fed6
commit 250adee852
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
# Start seatd # Start seatd
# #
[ -f seatd.sock ] && sudo rm seatd.sock [ -f seatd.sock ] && sudo rm seatd.sock
sudo LIBSEAT_LOGLEVEL=debug SEATD_SOCK=./seatd.sock ./build/seatd & sudo SEATD_LOGLEVEL=debug SEATD_SOCK=./seatd.sock ./build/seatd &
# seatd is started in the background, so wait for it to come alive # seatd is started in the background, so wait for it to come alive
cnt=0 cnt=0

View file

@ -38,7 +38,7 @@ struct libseat *libseat_open_seat(struct libseat_seat_listener *listener, void *
return NULL; return NULL;
} }
char *loglevel = getenv("SEATD_LOGLEVEL"); char *loglevel = getenv("LIBSEAT_LOGLEVEL");
enum libseat_log_level level = LIBSEAT_SILENT; enum libseat_log_level level = LIBSEAT_SILENT;
if (loglevel != NULL) { if (loglevel != NULL) {
if (strcmp(loglevel, "silent") == 0) { if (strcmp(loglevel, "silent") == 0) {