Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
7fb2c60b
Verified
Commit
7fb2c60b
authored
Oct 22, 2021
by
Chocobozzz
Browse files
Remove sync call in logger
Winston already does it
parent
36de29df
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/helpers/logger.ts
View file @
7fb2c60b
...
...
@@ -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
()
...
...
server/initializers/config.ts
View file @
7fb2c60b
...
...
@@ -6,7 +6,6 @@ import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-red
import
{
BroadcastMessageLevel
}
from
'
@shared/models/server
'
import
{
VideosRedundancyStrategy
}
from
'
../../shared/models
'
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
'
// Use a variable to reload the configuration if we need
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment