From e94a07b6779cac26fc546b761f6e66d64183c732 Mon Sep 17 00:00:00 2001 From: GyDi <segydi@foxmail.com> Date: Tue, 6 Sep 2022 14:42:58 +0800 Subject: [PATCH] fix: log level warn value --- src/components/setting/setting-clash.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/setting/setting-clash.tsx b/src/components/setting/setting-clash.tsx index 5e13d6b..3ba8cd1 100644 --- a/src/components/setting/setting-clash.tsx +++ b/src/components/setting/setting-clash.tsx @@ -91,7 +91,8 @@ const SettingClash = ({ onError }: Props) => { <SettingItem label={t("Log Level")}> <GuardState - value={logLevel ?? "info"} + // clash premium 2022.08.26 值为warn + value={logLevel === "warn" ? "warning" : logLevel ?? "info"} onCatch={onError} onFormat={(e: any) => e.target.value} onChange={(e) => onChangeData({ "log-level": e })} @@ -100,7 +101,7 @@ const SettingClash = ({ onError }: Props) => { <Select size="small" sx={{ width: 100, "> div": { py: "7.5px" } }}> <MenuItem value="debug">Debug</MenuItem> <MenuItem value="info">Info</MenuItem> - <MenuItem value="warn">Warn</MenuItem> + <MenuItem value="warning">Warn</MenuItem> <MenuItem value="error">Error</MenuItem> <MenuItem value="silent">Silent</MenuItem> </Select> -- GitLab