Skip to content

Commit

Permalink
chore: improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Nov 13, 2024
1 parent 105dfb0 commit bea4618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/miseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class MiseService {
async execMiseCommand(command: string, { setProfile = true } = {}) {
const miseCommand = this.createMiseCommand(command, { setProfile });
ensureMiseCommand(miseCommand);
logger.info(`Executing mise command: ${miseCommand}`);
logger.info(`> ${miseCommand}`);
return execAsync(miseCommand, { cwd: this.workspaceRoot });
}

Expand Down
5 changes: 1 addition & 4 deletions src/providers/toolsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,11 @@ async function runMiseToolActionInConsole(
command: string,
taskName: string,
): Promise<void> {
const outputChannel = vscode.window.createOutputChannel("mise");
outputChannel.show();

try {
const miseCommand = toolsProvider
.getMiseService()
.createMiseCommand(command);
outputChannel.appendLine(`> ${miseCommand}`);
logger.info(`> ${miseCommand}`);

if (!miseCommand) {
logger.warn("Could not find mise binary");
Expand Down

0 comments on commit bea4618

Please sign in to comment.