chore: 超时设置日志改回debug级别

This commit is contained in:
thzxx
2026-06-10 09:55:32 +08:00
parent 0489952ceb
commit 99ef9a5078
+3 -3
View File
@@ -83,14 +83,14 @@ export function initSettingsModal(): void {
if (bridge?.tool?.setTimeouts) { if (bridge?.tool?.setTimeouts) {
await bridge.tool.setTimeouts({ http: httpMs }); await bridge.tool.setTimeouts({ http: httpMs });
} }
logInfo('HTTP 超时', httpSec >= 0 ? (httpSec === 0 ? '已禁用' : `${httpSec}s`) : '默认(30s)'); logSetting('HTTP 超时', httpSec >= 0 ? (httpSec === 0 ? '已禁用' : `${httpSec}s`) : '默认(30s)');
// 流式超时(秒→毫秒) // 流式超时(秒→毫秒)
const streamSec = parseSec(inputStreamTimeout.value.trim()); const streamSec = parseSec(inputStreamTimeout.value.trim());
const streamMs = streamSec >= 0 ? streamSec * 1000 : 300_000; const streamMs = streamSec >= 0 ? streamSec * 1000 : 300_000;
state.set('streamTimeout', streamMs); state.set('streamTimeout', streamMs);
if (db) await db.saveSetting('streamTimeout', streamSec); if (db) await db.saveSetting('streamTimeout', streamSec);
logInfo('流式超时', streamSec >= 0 ? (streamSec === 0 ? '已禁用' : `${streamSec}s`) : '默认(300s)'); logSetting('流式超时', streamSec >= 0 ? (streamSec === 0 ? '已禁用' : `${streamSec}s`) : '默认(300s)');
// MCP 超时(秒→毫秒) // MCP 超时(秒→毫秒)
const mcpSec = parseSec(inputMCPTimeout.value.trim()); const mcpSec = parseSec(inputMCPTimeout.value.trim());
@@ -99,7 +99,7 @@ export function initSettingsModal(): void {
if (bridge?.tool?.setTimeouts) { if (bridge?.tool?.setTimeouts) {
await bridge.tool.setTimeouts({ mcp: mcpMs }); await bridge.tool.setTimeouts({ mcp: mcpMs });
} }
logInfo('MCP 超时', mcpSec >= 0 ? (mcpSec === 0 ? '已禁用' : `${mcpSec}s`) : '默认(60s)'); logSetting('MCP 超时', mcpSec >= 0 ? (mcpSec === 0 ? '已禁用' : `${mcpSec}s`) : '默认(60s)');
}; };
const saveHttpTimeout = debounce(applyTimeouts, 500); const saveHttpTimeout = debounce(applyTimeouts, 500);