This commit is contained in:
Adria Navarro 2023-07-10 17:48:19 +02:00
parent 6bd4157485
commit d3536e0222
3 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
async function download() { async function download() {
loading = true loading = true
try { try {
await downloadStream(await API.getServerLogs()) await downloadStream(await API.getSystemLogs())
} finally { } finally {
loading = false loading = false
} }

View File

@ -30,7 +30,7 @@ import { buildBackupsEndpoints } from "./backups"
import { buildEnvironmentVariableEndpoints } from "./environmentVariables" import { buildEnvironmentVariableEndpoints } from "./environmentVariables"
import { buildEventEndpoints } from "./events" import { buildEventEndpoints } from "./events"
import { buildAuditLogsEndpoints } from "./auditLogs" import { buildAuditLogsEndpoints } from "./auditLogs"
import { buildLogsEndpoints } from "./logs" import { buildSystemLogsEndpoints } from "./systemLogs"
/** /**
* Random identifier to uniquely identify a session in a tab. This is * Random identifier to uniquely identify a session in a tab. This is
@ -278,6 +278,6 @@ export const createAPIClient = config => {
...buildEnvironmentVariableEndpoints(API), ...buildEnvironmentVariableEndpoints(API),
...buildEventEndpoints(API), ...buildEventEndpoints(API),
...buildAuditLogsEndpoints(API), ...buildAuditLogsEndpoints(API),
...buildLogsEndpoints(API), ...buildSystemLogsEndpoints(API),
} }
} }

View File

@ -1,8 +1,8 @@
export const buildLogsEndpoints = API => ({ export const buildLogsEndpoints = API => ({
/** /**
* Gets a list of datasources. * Gets a stream for the system logs.
*/ */
getServerLogs: async () => { getSystemLogs: async () => {
return await API.get({ return await API.get({
url: "/api/global/system/logs", url: "/api/global/system/logs",
json: false, json: false,