From d4ddf3acf06cb2063d4c4128fcda05ba8f2c78ab Mon Sep 17 00:00:00 2001 From: uurgothat Date: Mon, 4 Oct 2021 22:01:08 +0300 Subject: Rainbow the logs --- cdn/src/util/Storage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cdn/src') diff --git a/cdn/src/util/Storage.ts b/cdn/src/util/Storage.ts index 5cf1eb80..8ae44bbb 100644 --- a/cdn/src/util/Storage.ts +++ b/cdn/src/util/Storage.ts @@ -1,6 +1,7 @@ import { FileStorage } from "./FileStorage"; import path from "path"; import fse from "fs-extra"; +import { bgCyan, black } from "chalk"; process.cwd(); export interface Storage { @@ -18,7 +19,7 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) { } else { location = path.join(process.cwd(), "files"); } - console.log(`[CDN] storage location: ${location}`); + console.log(`[CDN] storage location: ${bgCyan(`${black(location)}`)}`); fse.ensureDirSync(location); process.env.STORAGE_LOCATION = location; -- cgit 1.5.1