mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
fix: allow all valid log levels in generated profile
This commit is contained in:
@@ -149,9 +149,8 @@ export async function generateProfile(): Promise<string | undefined> {
|
||||
addedProxyServerRouteExcludes
|
||||
)
|
||||
}
|
||||
// 确保可以拿到基础日志信息
|
||||
// 使用 debug 可以调试内核相关问题 `debug/pprof`
|
||||
if (['info', 'debug'].includes(profile['log-level']) === false) {
|
||||
|
||||
if (!['info', 'debug', 'warning', 'error', 'silent'].includes(profile['log-level'])) {
|
||||
profile['log-level'] = 'info'
|
||||
}
|
||||
// 删除空的局域网允许列表,避免局域网访问异常
|
||||
|
||||
Reference in New Issue
Block a user