diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-26 22:12:16 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-26 22:13:02 +1000 |
commit | e4dbf27a6a6377b8af06462b54ec146ebb4683ba (patch) | |
tree | 98b9e9680151e7e6b1a6be491be2ade0dfc3c169 | |
parent | Move schemas to /src/util/schemas (diff) | |
download | server-e4dbf27a6a6377b8af06462b54ec146ebb4683ba.tar.xz |
Remove the cdn storage location log
-rw-r--r-- | src/cdn/util/FileStorage.ts | 2 | ||||
-rw-r--r-- | src/cdn/util/Storage.ts | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cdn/util/FileStorage.ts b/src/cdn/util/FileStorage.ts index 955c570b..0e31a50e 100644 --- a/src/cdn/util/FileStorage.ts +++ b/src/cdn/util/FileStorage.ts @@ -1,6 +1,6 @@ import { Storage } from "./Storage"; import fs from "fs"; -import { join, relative, dirname } from "path"; +import { join, dirname } from "path"; import "missing-native-js-functions"; import { Readable } from "stream"; import ExifTransformer from "exif-be-gone"; diff --git a/src/cdn/util/Storage.ts b/src/cdn/util/Storage.ts index 04fbacca..d040f50b 100644 --- a/src/cdn/util/Storage.ts +++ b/src/cdn/util/Storage.ts @@ -21,7 +21,8 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) { } else { location = path.join(process.cwd(), "files"); } - console.log(`[CDN] storage location: ${bgCyan(`${black(location)}`)}`); + // TODO: move this to some start func, so it doesn't run when server is imported + //console.log(`[CDN] storage location: ${bgCyan(`${black(location)}`)}`); if (!fs.existsSync(location)) fs.mkdirSync(location); process.env.STORAGE_LOCATION = location; |