Skip to content

Commit

Permalink
replace enableDebugMode() with setDebugMode()
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmosJunk committed Oct 18, 2024
1 parent 0b3548d commit 4f90d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Erii.bind(
async (ctx, options) => {
const path = ctx.getArgument().toString();
if (options.verbose) {
logger.enableDebugMode();
logger.setDebugMode(true);
}
if (!options.noProxy && !process.env.NO_PROXY) {
if (process.platform === "win32") {
Expand Down Expand Up @@ -125,7 +125,7 @@ Erii.bind(
},
(ctx, options) => {
if (options.verbose) {
logger.enableDebugMode();
logger.setDebugMode(true);
}
const fileOptions = readConfigFile();
if (Object.keys(fileOptions).length > 0) {
Expand Down
4 changes: 0 additions & 4 deletions src/utils/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ class ConsoleLogger {
console.info(chalk.red(`[MINYAMI][ERROR] ${message}`));
}

enableDebugMode() {
this.isDebugMode = true;
}

setDebugMode(enabled: boolean): void {
this.isDebugMode = enabled;
}
Expand Down

0 comments on commit 4f90d35

Please sign in to comment.