1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Remove debug logging

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-01-10 08:25:11 -05:00
parent 120a5f757d
commit 91cd2c8636

View File

@ -394,14 +394,12 @@ export class Cluster implements ClusterModel {
this.bindEvents();
}
console.log("before reconnect");
if (this.disconnected || !this.accessible) {
try {
this.broadcastConnectUpdate("Starting connection ...");
await this.reconnect();
} catch (error) {
console.log(error);
this.broadcastConnectUpdate(`Failed to start connection: ${error}`, true);
return;
@ -515,7 +513,6 @@ export class Cluster implements ClusterModel {
* @internal
*/
private async refreshAccessibility(): Promise<void> {
console.log("in refreshAccessibility");
this.dependencies.logger.info(`[CLUSTER]: refreshAccessibility`, this.getMeta());
const proxyConfig = await this.getProxyKubeconfig();
const canI = this.dependencies.createAuthorizationReview(proxyConfig);
@ -579,7 +576,6 @@ export class Cluster implements ClusterModel {
return ClusterStatus.AccessGranted;
} catch (error) {
console.log(error);
this.dependencies.logger.error(`[CLUSTER]: Failed to connect to "${this.contextName}": ${error}`);
if (isRequestError(error)) {
@ -746,11 +742,6 @@ export class Cluster implements ClusterModel {
}
shouldShowResource(resource: KubeApiResourceDescriptor): boolean {
// console.log({
// resource,
// allowed: toJS([...this.allowedResources]),
// });
return this.allowedResources.has(formatKubeApiResource(resource));
}