summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:12:16 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:13:02 +1000
commitfcc0884e36d3dbd15ce50c17af16fef5ff38b510 (patch)
tree064be8a67962cac44721c7de0ecb36e51a736773 /src
parentMove schemas to /src/util/schemas (diff)
downloadserver-fcc0884e36d3dbd15ce50c17af16fef5ff38b510.tar.xz
Remove the cdn storage location log
Diffstat (limited to 'src')
-rw-r--r--src/cdn/util/FileStorage.ts2
-rw-r--r--src/cdn/util/Storage.ts3
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;