From 7a0e66a0f874075734f0686320084b9634489948 Mon Sep 17 00:00:00 2001 From: Nagarjun Sanji Date: Thu, 10 Oct 2024 11:40:13 +0530 Subject: [PATCH] updated --- src/watcher/reportWatcher.ts | 4 ++-- src/watcher/workspaceWatcher.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/watcher/reportWatcher.ts b/src/watcher/reportWatcher.ts index 8d802ea..d439baf 100644 --- a/src/watcher/reportWatcher.ts +++ b/src/watcher/reportWatcher.ts @@ -1,7 +1,7 @@ import * as vscode from "vscode"; import { DebrickedCommands } from "../constants"; import { dependencyService, policyRuleService } from "../services"; -import { errorHandler, globalStore } from "../helpers"; +import { errorHandler, globalStore, Logger } from "../helpers"; export class ReportWatcher { private watcher: vscode.FileSystemWatcher | null = null; @@ -24,7 +24,7 @@ export class ReportWatcher { }); this.watcher.onDidDelete(() => { - console.log("Report file deleted"); + Logger.logInfo(`Report file deleted`); }); context.subscriptions.push(this.watcher); } diff --git a/src/watcher/workspaceWatcher.ts b/src/watcher/workspaceWatcher.ts index 33525ff..096f748 100644 --- a/src/watcher/workspaceWatcher.ts +++ b/src/watcher/workspaceWatcher.ts @@ -1,7 +1,7 @@ import * as vscode from "vscode"; import { SupportedFilesToScan } from "../constants"; import { scanService } from "services"; -import { errorHandler, globalStore, statusBarMessageHelper } from "../helpers"; +import { errorHandler, globalStore, Logger, statusBarMessageHelper } from "../helpers"; import * as path from "path"; export class WorkSpaceWatcher { @@ -30,7 +30,7 @@ export class WorkSpaceWatcher { }); this.packageJsonWatcher.onDidDelete((uri) => { - console.log(`package.json deleted: ${uri.fsPath}`); + Logger.logInfo(`deleted: ${uri.fsPath}`); }); this.context.subscriptions.push(this.packageJsonWatcher);