1
0
Fork 0
mirror of synced 2024-06-24 00:50:24 +12:00

Fix order

This commit is contained in:
Adria Navarro 2023-07-10 15:59:59 +02:00
parent fd0018c1bc
commit 8375ea4c5a
2 changed files with 2 additions and 2 deletions

View file

@ -28,3 +28,4 @@ BB_ADMIN_USER_PASSWORD=
# A path that is watched for plugin bundles. Any bundles found are imported automatically/
PLUGINS_DIR=
ROLLING_LOG_MAX_SIZE=

View file

@ -11,7 +11,6 @@ const rollingFileName = `${logsFileName}.bak`
export function localFileDestination() {
const outFile = rfs.createStream(logsFileName, {
size: env.ROLLING_LOG_MAX_SIZE,
teeToStdout: true,
})
outFile.on("rotation", () => {
@ -28,6 +27,6 @@ export function getLogReadStream() {
}
const rollingContent = fs.readFileSync(rollingFileName)
const combinedContent = Buffer.concat([logsContent, rollingContent])
const combinedContent = Buffer.concat([rollingContent, logsContent])
return combinedContent
}