Skip to content

Commit

Permalink
chore: remove console logs (prometheus#14430)
Browse files Browse the repository at this point in the history
Signed-off-by: Manik Rana <[email protected]>
  • Loading branch information
Maniktherana authored Jul 7, 2024
1 parent 06f0f2e commit 8849b7d
Showing 1 changed file with 0 additions and 64 deletions.
64 changes: 0 additions & 64 deletions web/ui/react-app/src/pages/graph/HistogramChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,11 @@ const HistogramChart: FC<HistogramChartProps> = ({ index, histogram, scale }) =>
const endNegative = maxNegative !== 0 ? -Math.log(Math.abs(maxNegative)) : 0;
const startPositive = minPositive !== 0 ? Math.log(minPositive) : 0;
const endPositive = maxPositive !== 0 ? Math.log(maxPositive) : 0;
console.log(
'startNegative',
startNegative,
'endNegative',
endNegative,
'startPositive',
startPositive,
'endPositive',
endPositive
);

// Calculate the width of negative, positive, and all exponential bucket ranges on the x-axis
const xWidthNegative = endNegative - startNegative;
const xWidthPositive = endPositive - startPositive;
const xWidthTotal = xWidthNegative + defaultExpBucketWidth + xWidthPositive;
console.log('xWidthNegative', xWidthNegative, 'xWidthPositive', xWidthPositive, 'xWidthTotal', xWidthTotal);

const zeroBucketIdx = findZeroBucket(buckets);
const zeroAxisLeft = findZeroAxisLeft(
Expand Down Expand Up @@ -250,59 +239,6 @@ const RenderHistogramBars: FC<RenderHistogramProps> = ({
throw new Error('Invalid scale');
}

console.log(
'[',
left,
',',
right,
']',
'\n',
'fds[bIdx]',
fds[bIdx],
'\n',
'fdMax',
fdMax,
'\n',
'bucketIdx',
bucketIdx,
'\n',
'bucketLeft',
bucketLeft,
'\n',
'bucketWidth',
bucketWidth,
'\n',
'bucketHeight',
bucketHeight,
'\n',
'defaultExpBucketWidth',
defaultExpBucketWidth,
'\n',
'expBucketWidth',
expBucketWidth,
'\n',
'startNegative',
startNegative,
'\n',
'startPositive',
startPositive,
'\n',
'minPositive',
minPositive,
'\n',
'maxNegative',
maxNegative,
'xWidthNegative',
xWidthNegative,
'\n',
'xWidthTotal',
xWidthTotal,
'\n',
'xWidthPositive',
xWidthPositive,
'\n'
);

return (
<React.Fragment key={bIdx}>
<div
Expand Down

0 comments on commit 8849b7d

Please sign in to comment.