Rename .log extensions
This commit is contained in:
parent
0b5717cde5
commit
6e2a8e0ab9
|
@ -5,7 +5,7 @@ import * as rfs from "rotating-file-stream"
|
|||
import env from "../environment"
|
||||
import { budibaseTempDir } from "../objectStore"
|
||||
|
||||
const logsFileName = `budibase.logs`
|
||||
const logsFileName = `budibase.log`
|
||||
const budibaseLogsHistoryFileName = "budibase-logs-history.txt"
|
||||
|
||||
const logsPath = path.join(budibaseTempDir(), "systemlogs")
|
||||
|
|
|
@ -6,7 +6,7 @@ export async function getLogs(ctx: UserCtx) {
|
|||
|
||||
const { installId } = await installation.getInstall()
|
||||
|
||||
const fileName = `${installId}-${Date.now()}.logs`
|
||||
const fileName = `${installId}-${Date.now()}.log`
|
||||
|
||||
ctx.set("content-disposition", `attachment; filename=${fileName}`)
|
||||
ctx.body = logReadStream
|
||||
|
|
Loading…
Reference in New Issue