Fix order
This commit is contained in:
parent
fd0018c1bc
commit
8375ea4c5a
2 changed files with 2 additions and 2 deletions
|
@ -28,3 +28,4 @@ BB_ADMIN_USER_PASSWORD=
|
||||||
|
|
||||||
# A path that is watched for plugin bundles. Any bundles found are imported automatically/
|
# A path that is watched for plugin bundles. Any bundles found are imported automatically/
|
||||||
PLUGINS_DIR=
|
PLUGINS_DIR=
|
||||||
|
ROLLING_LOG_MAX_SIZE=
|
|
@ -11,7 +11,6 @@ const rollingFileName = `${logsFileName}.bak`
|
||||||
export function localFileDestination() {
|
export function localFileDestination() {
|
||||||
const outFile = rfs.createStream(logsFileName, {
|
const outFile = rfs.createStream(logsFileName, {
|
||||||
size: env.ROLLING_LOG_MAX_SIZE,
|
size: env.ROLLING_LOG_MAX_SIZE,
|
||||||
teeToStdout: true,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
outFile.on("rotation", () => {
|
outFile.on("rotation", () => {
|
||||||
|
@ -28,6 +27,6 @@ export function getLogReadStream() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const rollingContent = fs.readFileSync(rollingFileName)
|
const rollingContent = fs.readFileSync(rollingFileName)
|
||||||
const combinedContent = Buffer.concat([logsContent, rollingContent])
|
const combinedContent = Buffer.concat([rollingContent, logsContent])
|
||||||
return combinedContent
|
return combinedContent
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue