Skip to content

Commit f57f750

Browse files
committed
refactor: improve trace messages
1 parent 07788db commit f57f750

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/cli/install-tool/install-tool.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class InstallToolService {
5252
): Promise<number | void> {
5353
logger.trace(
5454
{ tools: this.toolSvcs.map((t) => t.name) },
55-
'supported tools',
55+
'InstallToolService.install: supported tools',
5656
);
5757

5858
await this.pathSvc.ensureBasePaths();
@@ -198,7 +198,7 @@ export class InstallToolService {
198198
): Promise<number | void> {
199199
logger.trace(
200200
{ tools: this.toolSvcs.map((t) => t.name) },
201-
'supported tools',
201+
'InstallToolService.uninstall: supported tools',
202202
);
203203

204204
await this.pathSvc.ensureBasePaths();

src/cli/prepare-tool/prepare-tool.service.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export class PrepareToolService {
1919

2020
async prepare(tools: string[], dryRun = false): Promise<number | void> {
2121
const supportedTools = this.toolSvcs.map((t) => t.name).sort();
22-
logger.trace({ tools: supportedTools }, 'supported tools');
22+
logger.trace(
23+
{ tools: supportedTools },
24+
'PrepareToolService.prepare: supported tools',
25+
);
2326
if (dryRun) {
2427
logger.info(`Dry run: preparing tools ${tools.join(', ')} ...`);
2528
return;
@@ -71,7 +74,10 @@ export class PrepareToolService {
7174

7275
async initialize(tools: string[], dryRun = false): Promise<number | void> {
7376
const supportedTools = this.toolSvcs.map((t) => t.name).sort();
74-
logger.trace({ tools: supportedTools }, 'supported tools');
77+
logger.trace(
78+
{ tools: supportedTools },
79+
'PrepareToolService.initialize: supported tools',
80+
);
7581
if (dryRun) {
7682
logger.info(`Dry run: initializing tools ${tools.join(', ')} ...`);
7783
return;

src/cli/services/v2-tool.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class V2ToolService {
4545
prep: this._needsPrep,
4646
uninstall: this._hasUninstall,
4747
},
48-
'construct',
48+
'V2ToolService.construct',
4949
);
5050
}
5151

0 commit comments

Comments
 (0)