fix: log level warn value

This commit is contained in:
GyDi 2022-09-06 14:42:58 +08:00 committed by GitHub
parent c058c29755
commit e94a07b677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>