diff --git a/packages/builder/src/pages/builder/portal/account/systemLogs/index.svelte b/packages/builder/src/pages/builder/portal/account/systemLogs/index.svelte index 0a59075220..8643a65f17 100644 --- a/packages/builder/src/pages/builder/portal/account/systemLogs/index.svelte +++ b/packages/builder/src/pages/builder/portal/account/systemLogs/index.svelte @@ -10,7 +10,7 @@ async function download() { loading = true try { - await downloadStream(await API.getServerLogs()) + await downloadStream(await API.getSystemLogs()) } finally { loading = false } diff --git a/packages/frontend-core/src/api/index.js b/packages/frontend-core/src/api/index.js index 5bffb82f4d..b756fcbdf2 100644 --- a/packages/frontend-core/src/api/index.js +++ b/packages/frontend-core/src/api/index.js @@ -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), } } diff --git a/packages/frontend-core/src/api/logs.js b/packages/frontend-core/src/api/systemLogs.js similarity index 76% rename from packages/frontend-core/src/api/logs.js rename to packages/frontend-core/src/api/systemLogs.js index d8c97b4773..addd8b64ab 100644 --- a/packages/frontend-core/src/api/logs.js +++ b/packages/frontend-core/src/api/systemLogs.js @@ -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,