aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/logger.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-22 16:25:16 +0200
committerChocobozzz <me@florianbigard.com>2021-10-22 16:25:16 +0200
commit7fb2c60bbe97fe50a8f459858bf89d311df29690 (patch)
tree9536d7cd8ee215d914974b1bbf67b0443f8dc5cb /server/helpers/logger.ts
parent36de29dfb2fde57a328d16dc91ee19cd418c1e3c (diff)
downloadPeerTube-7fb2c60bbe97fe50a8f459858bf89d311df29690.tar.gz
PeerTube-7fb2c60bbe97fe50a8f459858bf89d311df29690.tar.zst
PeerTube-7fb2c60bbe97fe50a8f459858bf89d311df29690.zip
Remove sync call in logger
Winston already does it
Diffstat (limited to 'server/helpers/logger.ts')
-rw-r--r--server/helpers/logger.ts4
1 files changed, 0 insertions, 4 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