summary refs log tree commit diff
path: root/cdn/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-04 22:01:33 +0200
committerGitHub <noreply@github.com>2021-10-04 22:01:33 +0200
commitfafd862d47d6ad3d731a7d714bfebcd7d2dfd86a (patch)
tree2d174d18e36e0155ae65bc9f8f6987f84ee38bf5 /cdn/src
parentMerge branch 'master' of https://github.com/fosscord/fosscord-server (diff)
parent:arrow_up: update dependencies (diff)
downloadserver-fafd862d47d6ad3d731a7d714bfebcd7d2dfd86a.tar.xz
Merge pull request #413 from Thesourtimes/master
Add colors for some logs + ASCII on startup
Diffstat (limited to 'cdn/src')
-rw-r--r--cdn/src/util/Storage.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdn/src/util/Storage.ts b/cdn/src/util/Storage.ts

index 5cf1eb80..91f841a6 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 "nanocolors"; 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;