]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/logger.ts
Prevent video import on non unicast ips
[github/Chocobozzz/PeerTube.git] / server / helpers / logger.ts
index 81b0dfaaae83b6897ff40e1fb14adc1837ac7d37..5fe3646c55eaf6a23732c75430ba01278c586678 100644 (file)
@@ -1,5 +1,5 @@
 // Thanks http://tostring.it/2014/06/23/advanced-logging-with-nodejs/
-import { mkdirpSync, stat } from 'fs-extra'
+import { stat } from 'fs-extra'
 import { omit } from 'lodash'
 import { join } from 'path'
 import { format as sqlFormat } from 'sql-formatter'
@@ -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()