Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Remove sync call in logger

Chocobozzz7fb2c60bbe97
diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts
index 81b0dfaaae..f35ef5e9fd 100644
--- a/server/helpers/logger.ts
+++ b/server/helpers/logger.ts
@@ -10,10 +10,6 @@ import { LOG_FILENAME } from '../initializers/constants'
const label = CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT
-// Create the directory if it does not exist
-// FIXME: use async
-mkdirpSync(CONFIG.STORAGE.LOG_DIR)
-
function getLoggerReplacer () {
const seen = new WeakSet()
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index e20efe02c0..cab60a61fa 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -6,7 +6,6 @@ import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-red
import { BroadcastMessageLevel } from '@shared/models/server'
import { VideosRedundancyStrategy } from '../../shared/models'
import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type'
-// Do not use barrels, remain constants as independent as possible
import { buildPath, parseBytes, parseDurationToMs, root } from '../helpers/core-utils'
// Use a variable to reload the configuration if we need