From 48b9bf47075271c91097eba4bf8e9316aa33f9c8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 27 Aug 2020 15:56:15 +0000 Subject: Nuke LIBSEAT_LOGLEVEL This will be replaced with a libseat API to set the log level. --- libseat/libseat.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'libseat') 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; -- cgit v1.2.3