1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-08 11:52:55 +01:00

Remove the cdn storage location log

This commit is contained in:
Madeline 2022-09-26 22:12:16 +10:00
parent 849b257db7
commit fcc0884e36
2 changed files with 3 additions and 2 deletions

View File

@ -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";

View File

@ -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;