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