From 9cef2a0a8f0ee0219ffc0759582189d5d6ff6250 Mon Sep 17 00:00:00 2001 From: GyDi Date: Thu, 8 Sep 2022 18:04:06 +0800 Subject: [PATCH] Fix clashapi log level format error --- experimental/clashapi/configs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experimental/clashapi/configs.go b/experimental/clashapi/configs.go index 6fc4b966..334caf4c 100644 --- a/experimental/clashapi/configs.go +++ b/experimental/clashapi/configs.go @@ -36,7 +36,7 @@ func getConfigs(logFactory log.Factory) func(w http.ResponseWriter, r *http.Requ logLevel := logFactory.Level() if logLevel == log.LevelTrace { logLevel = log.LevelDebug - } else if logLevel > log.LevelError { + } else if logLevel < log.LevelError { logLevel = log.LevelError } render.JSON(w, r, &configSchema{