mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove unnecessary logging
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
parent
00db92e22e
commit
915308c6a6
@ -22,8 +22,6 @@ const prometheusDetailsChannelListener =
|
|||||||
const prometheusHandler = di.inject(prometheusHandlerInjectable, cluster);
|
const prometheusHandler = di.inject(prometheusHandlerInjectable, cluster);
|
||||||
const details = await prometheusHandler.getPrometheusDetails();
|
const details = await prometheusHandler.getPrometheusDetails();
|
||||||
|
|
||||||
console.log(details);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
prometheusPath: details.prometheusPath,
|
prometheusPath: details.prometheusPath,
|
||||||
provider: {
|
provider: {
|
||||||
|
|||||||
@ -5,11 +5,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { SubTitle } from "../layout/sub-title";
|
import { SubTitle } from "../layout/sub-title";
|
||||||
|
|
||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
interface PrometheusDetailsProps {
|
interface PrometheusDetailsProps {
|
||||||
providerName: string;
|
providerName: string;
|
||||||
path: string;
|
path: string;
|
||||||
|
|||||||
@ -142,7 +142,6 @@ class NonInjectedClusterPrometheusSetting extends React.Component<ClusterPrometh
|
|||||||
type: "success",
|
type: "success",
|
||||||
details,
|
details,
|
||||||
};
|
};
|
||||||
this.props.logger.info(`[CLUSTER-SETTINGS]: Prometheus details loaded: ${JSON.stringify(this.prometheusDetails)}`);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.props.logger.error(`[CLUSTER-SETTINGS]: Failed to load prometheus details: ${error}`);
|
this.props.logger.error(`[CLUSTER-SETTINGS]: Failed to load prometheus details: ${error}`);
|
||||||
this.prometheusDetails = {
|
this.prometheusDetails = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user