Fix order
This commit is contained in:
parent
fd0018c1bc
commit
8375ea4c5a
|
@ -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=
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue