Skip to content

Commit

Permalink
Remove console.log from code (#2737)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 authored Dec 18, 2024
1 parent d6a58ca commit 8427fa5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions libs/ui-lib/lib/common/components/hosts/HostStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ const HostStatusPopoverContent: React.FC<HostStatusPopoverContentProps> = ({
const { host } = props;
const { status, statusInfo } = host;
const { t } = useTranslation();
// eslint-disable-next-line no-console
console.log(status);
if (['installing-in-progress'].includes(status)) {
return (
<TextContent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import React, { Fragment, ReactElement } from 'react';
import { Alert, AlertGroup, AlertVariant, Level, LevelItem } from '@patternfly/react-core';
import { global_warning_color_100 as warningColor } from '@patternfly/react-tokens/dist/js/global_warning_color_100';
Expand Down Expand Up @@ -277,16 +276,12 @@ export const HostValidationGroups = ({
<>
{getKeys(validationsInfo).map((groupName) => {
const validations = validationsInfo[groupName] || [];
// eslint-disable-next-line no-console
console.log(validations);
const pendingValidations = validations.filter(
(v) => v.status === 'pending' && v.id !== 'ntp-synced',
);
const failedValidations = validations.filter(
(v) => (v.status === 'failure' || v.status === 'error') && v.id !== 'ntp-synced',
);
console.log('FAILED');
console.log(failedValidations);
const softValidations = validations.filter(
(v) => ['pending', 'failure', 'error'].includes(v.status) && v.id === 'ntp-synced',
);
Expand All @@ -311,7 +306,6 @@ export const HostValidationGroups = ({
</>
);
};
console.log(getValidationGroupState());
const groupLabel = hostValidationGroupLabels(t)[groupName] as string;
return (
<Fragment key={groupName}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ const getNmstateObject = (
),
);
}
// eslint-disable-next-line no-console
console.log(interfaces);
}

routeConfigs.push(
Expand Down

0 comments on commit 8427fa5

Please sign in to comment.