diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 02:43:13 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 02:49:07 +0200 |
commit | 250adee852612576093639fa13c97bd02483dcf6 (patch) | |
tree | 092b9c4e3492bddded3e229e43d152fbe3415200 | |
parent | e25688fed67b6ffb5d5dfee6530d3c2d7c327115 (diff) | |
download | seatd-250adee852612576093639fa13c97bd02483dcf6.tar.xz |
libseat: Use LIBSEAT_LOGLEVEL instead of SEATD_LOGLEVEL
-rwxr-xr-x | .builds/smoketest-seatd.sh | 2 | ||||
-rw-r--r-- | libseat/libseat.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.builds/smoketest-seatd.sh b/.builds/smoketest-seatd.sh index 58a6eb4..f6f9732 100755 --- a/.builds/smoketest-seatd.sh +++ b/.builds/smoketest-seatd.sh @@ -4,7 +4,7 @@ # Start seatd # [ -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 cnt=0 diff --git a/libseat/libseat.c b/libseat/libseat.c index e514d7f..00168c0 100644 --- a/libseat/libseat.c +++ b/libseat/libseat.c @@ -38,7 +38,7 @@ struct libseat *libseat_open_seat(struct libseat_seat_listener *listener, void * return NULL; } - char *loglevel = getenv("SEATD_LOGLEVEL"); + char *loglevel = getenv("LIBSEAT_LOGLEVEL"); enum libseat_log_level level = LIBSEAT_SILENT; if (loglevel != NULL) { if (strcmp(loglevel, "silent") == 0) { |