1
0
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:
Sebastian Malton 2023-03-03 16:24:17 -05:00
parent d37b37455d
commit 0d625ccea7

View File

@ -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 { FalibleOnlyClusterMetadataDetector } from "../../main/cluster-detectors/token";
import { withConcurrencyLimit } from "../utils/with-concurrency-limit";
import { inspect } from "util";
export interface ClusterDependencies {
readonly directoryForKubeConfigs: string;
@ -498,7 +499,10 @@ export class Cluster implements ClusterModel {
this.allowedResources.replace(await this.getAllowedResources(requestNamespaceListPermissions));
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,
}));
}
/**