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() {
loading = true
try {
await downloadStream(await API.getServerLogs())
await downloadStream(await API.getSystemLogs())
} finally {
loading = false
}

View File

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

View File

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