From fcc0884e36d3dbd15ce50c17af16fef5ff38b510 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Mon, 26 Sep 2022 22:12:16 +1000 Subject: Remove the cdn storage location log --- src/cdn/util/FileStorage.ts | 2 +- src/cdn/util/Storage.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit 1.4.1