mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 01:45:59 +00:00
SYNC: export logs
This commit is contained in:
committed by
Diflow
parent
994dae2a7d
commit
d8eeeaaef6
@@ -314,10 +314,10 @@ module.exports = {
|
||||
},
|
||||
|
||||
fillAppLogs_meta: true,
|
||||
async fillAppLogs({ dateFrom = 0, dateTo = new Date().getTime() }) {
|
||||
async fillAppLogs({ dateFrom = 0, dateTo = new Date().getTime(), prepareForExport = false }) {
|
||||
const jslid = crypto.randomUUID();
|
||||
const outputFile = path.join(jsldir(), `${jslid}.jsonl`);
|
||||
await copyAppLogsIntoFile(dateFrom, dateTo, outputFile);
|
||||
await copyAppLogsIntoFile(dateFrom, dateTo, outputFile, prepareForExport);
|
||||
return {
|
||||
jslid,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user