From ae4db7376900f9dce19dbdbbaa256ac3cc0b4a88 Mon Sep 17 00:00:00 2001 From: Heng Qian Date: Wed, 9 Oct 2024 19:27:34 +0800 Subject: [PATCH] Change log level to debug if not finding insight agent id Signed-off-by: Heng Qian --- server/routes/summary_routes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes/summary_routes.ts b/server/routes/summary_routes.ts index 3d8f5d4f..7e9a6e0d 100644 --- a/server/routes/summary_routes.ts +++ b/server/routes/summary_routes.ts @@ -11,7 +11,7 @@ import { getAgentIdByConfigName, searchAgent } from './get_agent'; import { AssistantServiceSetup } from '../services/assistant_service'; const SUMMARY_AGENT_CONFIG_ID = 'os_summary'; -const LOG_PATTERN_SUMMARY_AGENT_CONFIG_ID = 'os_summary_with_logPattern'; +const LOG_PATTERN_SUMMARY_AGENT_CONFIG_ID = 'os_summary_with_log_pattern'; const OS_INSIGHT_AGENT_CONFIG_ID = 'os_insight'; const DATA2SUMMARY_AGENT_CONFIG_ID = 'os_data2summary'; @@ -67,7 +67,7 @@ export function registerSummaryAssistantRoutes( } } } catch (e) { - context.assistant_plugin.logger.info( + context.assistant_plugin.logger.debug( `Cannot find insight agent for ${req.body.insightType}`, e );