X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Flogger.ts;h=5fe3646c55eaf6a23732c75430ba01278c586678;hb=7b54a81cccf6b4c12269e9d6897d608b1a99537a;hp=81b0dfaaae83b6897ff40e1fb14adc1837ac7d37;hpb=10ef089102f2225c5ec3ed426bc612e4f2bc8655;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index 81b0dfaaa..5fe3646c5 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts @@ -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()