File tree 3 files changed +12
-10
lines changed
amazonq/.changes/next-release
core/src/codewhisperer/util
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "type" : " Bug Fix" ,
3
+ "description" : " Code Review: Cleaned up output logs when running /review"
4
+ }
Original file line number Diff line number Diff line change 3
3
* SPDX-License-Identifier: Apache-2.0
4
4
*/
5
5
6
- import { showOutputMessage } from '../../shared/utilities/messages'
7
- import { getLogger , globals , removeAnsi } from '../../shared'
6
+ import { getLogger , removeAnsi } from '../../shared'
8
7
import { ChildProcess , ChildProcessOptions } from '../../shared/utilities/processUtils'
9
8
import { Uri } from 'vscode'
10
9
@@ -17,10 +16,10 @@ export async function isGitRepo(folder: Uri): Promise<boolean> {
17
16
rejectOnErrorCode : true ,
18
17
onStdout : ( text ) => {
19
18
output += text
20
- showOutputMessage ( removeAnsi ( text ) , globals . outputChannel )
19
+ getLogger ( ) . verbose ( removeAnsi ( text ) )
21
20
} ,
22
21
onStderr : ( text ) => {
23
- showOutputMessage ( removeAnsi ( text ) , globals . outputChannel )
22
+ getLogger ( ) . error ( removeAnsi ( text ) )
24
23
} ,
25
24
spawnOptions : {
26
25
cwd : folder . fsPath ,
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ import {
22
22
} from '../models/errors'
23
23
import { ZipUseCase } from '../models/constants'
24
24
import { ChildProcess , ChildProcessOptions } from '../../shared/utilities/processUtils'
25
- import { showOutputMessage } from '../../shared/utilities/messages'
26
- import { globals , removeAnsi } from '../../shared'
25
+ import { removeAnsi } from '../../shared'
27
26
28
27
export interface ZipMetadata {
29
28
rootDir : string
@@ -303,10 +302,10 @@ export class ZipUtil {
303
302
rejectOnErrorCode : false ,
304
303
onStdout : ( text ) => {
305
304
diffContent += text
306
- showOutputMessage ( removeAnsi ( text ) , globals . outputChannel )
305
+ getLogger ( ) . verbose ( removeAnsi ( text ) )
307
306
} ,
308
307
onStderr : ( text ) => {
309
- showOutputMessage ( removeAnsi ( text ) , globals . outputChannel )
308
+ getLogger ( ) . error ( removeAnsi ( text ) )
310
309
} ,
311
310
spawnOptions : {
312
311
cwd : projectPath ,
@@ -340,10 +339,10 @@ export class ZipUtil {
340
339
rejectOnErrorCode : true ,
341
340
onStdout : ( text ) => {
342
341
diffContent += text
343
- showOutputMessage ( removeAnsi ( text ) , globals . outputChannel )
342
+ getLogger ( ) . verbose ( removeAnsi ( text ) )
344
343
} ,
345
344
onStderr : ( text ) => {
346
- showOutputMessage ( removeAnsi ( text ) , globals . outputChannel )
345
+ getLogger ( ) . error ( removeAnsi ( text ) )
347
346
} ,
348
347
spawnOptions : {
349
348
cwd : projectPath ,
You can’t perform that action at this time.
0 commit comments