From 4a16f8c69dac5e7b3e9aee1730782ea3c1c8ce09 Mon Sep 17 00:00:00 2001 From: Kallum Jones Date: Wed, 3 Aug 2022 16:54:07 +0100 Subject: [PATCH] Only log crashes --- src/util/print_utils.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/util/print_utils.ts b/src/util/print_utils.ts index 9eaa7ee..b9e393d 100644 --- a/src/util/print_utils.ts +++ b/src/util/print_utils.ts @@ -1,38 +1,21 @@ import chalk from "chalk"; import ora, { Ora } from "ora"; -import ModManager from "../mod-manager.js"; export default class PrintUtils { static info(print: string) { - if (ModManager.logger != null) { - ModManager.logger.info(print); - } - console.log(chalk.white(print)); } static warn(print: string) { - if (ModManager.logger != null) { - ModManager.logger.warn(print) - } - console.log(chalk.yellowBright(print)); } static success(print: string) { - if (ModManager.logger != null) { - ModManager.logger.info(print) - } - console.log(chalk.greenBright(print)); } static error(print: string) { - if (ModManager.logger != null) { - ModManager.logger.error(print); - } - console.log(chalk.redBright(print)); }