aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/helpers/logger.ts4
-rw-r--r--server/initializers/config.ts1
2 files changed, 0 insertions, 5 deletions
diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts
index 81b0dfaaa..f35ef5e9f 100644
--- a/server/helpers/logger.ts
+++ b/server/helpers/logger.ts
@@ -10,10 +10,6 @@ import { LOG_FILENAME } from '../initializers/constants'
10 10
11const label = CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT 11const label = CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT
12 12
13// Create the directory if it does not exist
14// FIXME: use async
15mkdirpSync(CONFIG.STORAGE.LOG_DIR)
16
17function getLoggerReplacer () { 13function getLoggerReplacer () {
18 const seen = new WeakSet() 14 const seen = new WeakSet()
19 15
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index e20efe02c..cab60a61f 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -6,7 +6,6 @@ import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-red
6import { BroadcastMessageLevel } from '@shared/models/server' 6import { BroadcastMessageLevel } from '@shared/models/server'
7import { VideosRedundancyStrategy } from '../../shared/models' 7import { VideosRedundancyStrategy } from '../../shared/models'
8import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type' 8import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type'
9// Do not use barrels, remain constants as independent as possible
10import { buildPath, parseBytes, parseDurationToMs, root } from '../helpers/core-utils' 9import { buildPath, parseBytes, parseDurationToMs, root } from '../helpers/core-utils'
11 10
12// Use a variable to reload the configuration if we need 11// Use a variable to reload the configuration if we need