mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Merge branch 'master' into metrics-query-setting
This commit is contained in:
4 files changed
+348
-262
No files matched your search
@@ -57,6 +57,12 @@ export class PodApi extends KubeApi<Pod> {
|
||||
async getLogs(params: ResourceDescriptor, query?: PodLogsQuery): Promise<string> {
|
||||
const path = `${this.getUrl(params)}/log`;
|
||||
|
||||
return this.request.get(path, { query });
|
||||
const logs = await this.request.get(path, { query });
|
||||
|
||||
if (typeof logs !== "string") {
|
||||
return "";
|
||||
}
|
||||
|
||||
return logs;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user