From cfb209edde16a4ae0a7bd7719612c4eda48d7d37 Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Wed, 11 Dec 2024 12:01:08 -0500 Subject: [PATCH] Improve request logging for get solution Signed-off-by: Ian Bolton --- vscode/src/client/analyzerClient.ts | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/vscode/src/client/analyzerClient.ts b/vscode/src/client/analyzerClient.ts index edc4cca2..e8670ec3 100644 --- a/vscode/src/client/analyzerClient.ts +++ b/vscode/src/client/analyzerClient.ts @@ -356,20 +356,21 @@ export class AnalyzerClient { const maxIterations = getConfigMaxIterations(); try { - this.outputChannel.appendLine(`Sending 'getCodeplanAgentSolution' with: - max_priority: ${maxPriority}, - max_depth: ${maxDepth}, - max_iterations: ${maxIterations}`); + const request = { + file_path: "", + incidents: [enhancedIncident], + max_priority: maxPriority, + max_depth: maxDepth, + max_iterations: maxIterations, + }; + + this.outputChannel.appendLine( + `getCodeplanAgentSolution request: ${JSON.stringify(request, null, 2)}`, + ); const response: SolutionResponse = await this.rpcConnection!.sendRequest( "getCodeplanAgentSolution", - { - file_path: "", - incidents: [enhancedIncident], - max_priority: maxPriority, - max_depth: maxDepth, - max_iterations: maxIterations, - }, + request, ); vscode.commands.executeCommand("konveyor.loadSolution", response, {