mirror of https://github.com/Chocobozzz/PeerTube
parent
36de29dfb2
commit
7fb2c60bbe
|
@ -10,10 +10,6 @@ import { LOG_FILENAME } from '../initializers/constants'
|
||||||
|
|
||||||
const label = CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT
|
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 () {
|
function getLoggerReplacer () {
|
||||||
const seen = new WeakSet()
|
const seen = new WeakSet()
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-red
|
||||||
import { BroadcastMessageLevel } from '@shared/models/server'
|
import { BroadcastMessageLevel } from '@shared/models/server'
|
||||||
import { VideosRedundancyStrategy } from '../../shared/models'
|
import { VideosRedundancyStrategy } from '../../shared/models'
|
||||||
import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type'
|
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'
|
import { buildPath, parseBytes, parseDurationToMs, root } from '../helpers/core-utils'
|
||||||
|
|
||||||
// Use a variable to reload the configuration if we need
|
// Use a variable to reload the configuration if we need
|
||||||
|
|
Loading…
Reference in New Issue