mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Improve logging after refresh accessibility
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
d37b37455d
commit
0d625ccea7
@ -26,6 +26,7 @@ import type { RequestApiResources } from "../../main/cluster/request-api-resourc
|
|||||||
import type { DetectClusterMetadata } from "../../main/cluster-detectors/detect-cluster-metadata.injectable";
|
import type { DetectClusterMetadata } from "../../main/cluster-detectors/detect-cluster-metadata.injectable";
|
||||||
import type { FalibleOnlyClusterMetadataDetector } from "../../main/cluster-detectors/token";
|
import type { FalibleOnlyClusterMetadataDetector } from "../../main/cluster-detectors/token";
|
||||||
import { withConcurrencyLimit } from "../utils/with-concurrency-limit";
|
import { withConcurrencyLimit } from "../utils/with-concurrency-limit";
|
||||||
|
import { inspect } from "util";
|
||||||
|
|
||||||
export interface ClusterDependencies {
|
export interface ClusterDependencies {
|
||||||
readonly directoryForKubeConfigs: string;
|
readonly directoryForKubeConfigs: string;
|
||||||
@ -498,7 +499,10 @@ export class Cluster implements ClusterModel {
|
|||||||
|
|
||||||
this.allowedResources.replace(await this.getAllowedResources(requestNamespaceListPermissions));
|
this.allowedResources.replace(await this.getAllowedResources(requestNamespaceListPermissions));
|
||||||
this.ready = this.knownResources.length > 0;
|
this.ready = this.knownResources.length > 0;
|
||||||
this.dependencies.logger.info(`[CLUSTER]: refreshed accessibility data`, this.getState());
|
this.dependencies.logger.info(`[CLUSTER]: refreshed accessibility data: %s`, inspect(this.getState(), {
|
||||||
|
colors: true,
|
||||||
|
depth: Infinity,
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user