1
0
Fork 0
mirror of synced 2024-06-30 20:10:54 +12:00

Rename .log extensions

This commit is contained in:
Adria Navarro 2023-07-11 13:09:51 +02:00
parent 0b5717cde5
commit 6e2a8e0ab9
2 changed files with 2 additions and 2 deletions

View file

@ -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")

View file

@ -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