diff --git a/landing-page/src/components/landing-page-logs.ts b/landing-page/src/components/landing-page-logs.ts index 5553750cf802..2c626e302ce4 100644 --- a/landing-page/src/components/landing-page-logs.ts +++ b/landing-page/src/components/landing-page-logs.ts @@ -21,11 +21,7 @@ import { } from "../data/observer"; import { fireEvent } from "../../../src/common/dom/fire_event"; import { fileDownload } from "../../../src/util/file_download"; -import { - getDownloadUrl, - getSupervisorLogs, - getSupervisorLogsFollow, -} from "../data/supervisor"; +import { getSupervisorLogs, getSupervisorLogsFollow } from "../data/supervisor"; const ERROR_CHECK = /^[\d\s-:]+(ERROR|CRITICAL)(.*)/gm; declare global { @@ -267,12 +263,8 @@ class LandingPageLogs extends LitElement { private _downloadLogs() { const timeString = new Date().toISOString().replace(/:/g, "-"); - const downloadUrl = this._observerFallback - ? observerLogsDownloadUrl - : getDownloadUrl(this._logLinesCount); - const downloadName = `${this._observerFallback ? "observer" : "supervisor"}_${timeString}.log`; - fileDownload(downloadUrl, downloadName); + fileDownload(observerLogsDownloadUrl, `observer_${timeString}.log`); } static styles = [ diff --git a/landing-page/src/data/supervisor.ts b/landing-page/src/data/supervisor.ts index ace051250eb8..a2f78d3676ed 100644 --- a/landing-page/src/data/supervisor.ts +++ b/landing-page/src/data/supervisor.ts @@ -17,10 +17,6 @@ export const ALTERNATIVE_DNS_SERVERS: { }, ]; -export function getDownloadUrl(lines = 500) { - return `/supervisor/supervisor/logs?lines=${lines}`; -} - export async function getSupervisorLogs(lines = 100) { return fetch(`/supervisor/supervisor/logs?lines=${lines}`, { headers: {