Skip to content

Commit

Permalink
more cruft removal
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Nov 4, 2021
1 parent 913fc08 commit 4fe3d4c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const mapToCard = (
};

export const EPMHomePage: React.FC = memo(() => {
console.log('EPM home page');
return (
<Switch>
<Route path={INTEGRATIONS_ROUTING_PATHS.integrations_installed}>
Expand Down
5 changes: 0 additions & 5 deletions x-pack/plugins/fleet/public/hooks/use_fleet_status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ interface FleetStatus extends FleetStatusState {
const FleetStatusContext = React.createContext<FleetStatus | undefined>(undefined);

export const FleetStatusProvider: React.FC = ({ children }) => {
console.log('Fleet status provider');
const config = useConfig();
const [state, setState] = useState<FleetStatusState>({
enabled: config.agents.enabled,
Expand All @@ -38,11 +37,8 @@ export const FleetStatusProvider: React.FC = ({ children }) => {
async function sendGetStatus() {
try {
setState((s) => ({ ...s, isLoading: true }));
console.log('try to get status');
const res = await sendGetFleetStatus();
console.log('got status', res);
if (res.error) {
console.log('THROW', res.error);
throw res.error;
}

Expand All @@ -53,7 +49,6 @@ export const FleetStatusProvider: React.FC = ({ children }) => {
missingRequirements: res.data?.missing_requirements,
}));
} catch (error) {
console.log('foobar error', error);
setState((s) => ({ ...s, isLoading: false, error }));
}
},
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/fleet/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export class FleetPlugin implements Plugin<FleetSetup, FleetStart, FleetSetupDep

constructor(private readonly initializerContext: PluginInitializerContext) {
this.config = this.initializerContext.config.get<FleetConfigType>();
console.log('FLEET CONFIG!!!', this.config);
this.kibanaVersion = initializerContext.env.packageInfo.version;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ import { appContextService } from '../../';
// the unused variables cause a TS warning about unused values
// chose to comment them out vs @ts-ignore or @ts-expect-error on each line

const PRODUCTION_REGISTRY_URL_CDN = 'https://epr.elastic.co.foobar';
const STAGING_REGISTRY_URL_CDN = 'https://epr-staging.elastic.co.foobar';
const SNAPSHOT_REGISTRY_URL_CDN = 'https://epr-snapshot.elastic.co.foobar';
// const SNAPSHOT_REGISTRY_URL_CDN = 'https://epr-snapshot.elastic.co';
const PRODUCTION_REGISTRY_URL_CDN = 'https://epr.elastic.co';
const STAGING_REGISTRY_URL_CDN = 'https://epr-staging.elastic.co';
const SNAPSHOT_REGISTRY_URL_CDN = 'https://epr-snapshot.elastic.co';

// const PRODUCTION_REGISTRY_URL_NO_CDN = 'https://epr.ea-web.elastic.dev';
// const STAGING_REGISTRY_URL_NO_CDN = 'https://epr-staging.ea-web.elastic.dev';
Expand Down

0 comments on commit 4fe3d4c

Please sign in to comment.