Skip to content

Commit e89c99e

Browse files
committed
frontend: kraken: use zenoh to show extension logs
1 parent c6d688a commit e89c99e

File tree

3 files changed

+401
-135
lines changed

3 files changed

+401
-135
lines changed

core/frontend/src/components/kraken/KrakenManager.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -318,25 +318,6 @@ export async function getContainersStats(): Promise<any> {
318318
return response.data
319319
}
320320

321-
/**
322-
* Fetch logs of a given container.
323-
* @param {string} containerName The name of the container
324-
* @param {function} progressHandler The progress handler for the download
325-
* @param {AbortSignal} cancelToken The cancel token for the request
326-
*/
327-
export async function getContainerLogs(
328-
containerName: string,
329-
progressHandler: (event: any) => void,
330-
cancelToken: AbortSignal | undefined,
331-
): Promise<any> {
332-
await back_axios({
333-
method: 'GET',
334-
url: `${KRAKEN_API_V2_URL}/container/${containerName}/log`,
335-
onDownloadProgress: progressHandler,
336-
signal: cancelToken,
337-
})
338-
}
339-
340321
/**
341322
* Upload a tar file containing a Docker image and extract metadata
342323
* @param {File} file The tar file to upload
@@ -426,7 +407,6 @@ export default {
426407
restartExtension,
427408
listContainers,
428409
getContainersStats,
429-
getContainerLogs,
430410
uploadExtensionTarFile,
431411
keepTemporaryExtensionAlive,
432412
finalizeExtension,

0 commit comments

Comments
 (0)