Skip to content

Commit

Permalink
fix: removing debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rpapani committed Jan 18, 2025
1 parent 61c7fdd commit dd5da28
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@ function handler(bundles, opts = {}) {
if (url.metrics.viewblock.max > 0) {
scrollDepthViewblock = (url.metrics.viewblock.sum / url.metrics.viewblock.count)
/ url.metrics.viewblock.max;
console.log(`scrollDepth using viewblock for ${url.value}: ${scrollDepthViewblock}`);
}
if (url.metrics.viewmedia.max > 0) {
scrollDepthViewmedia = (url.metrics.viewmedia.sum / url.metrics.viewmedia.count)
/ url.metrics.viewmedia.max;
console.log(`scrollDepth using viewmedia for ${url.value}: ${scrollDepthViewmedia}`);
}
console.log(`${url.value} viewblock: ${scrollDepthViewblock} viewmedia: ${scrollDepthViewmedia}`);

Check warning on line 87 in packages/spacecat-shared-rum-api-client/src/functions/opportunities/high-inorganic-high-bounce-rate.js

View workflow job for this annotation

GitHub Actions / Test

Unexpected console statement
});
Expand Down
1 change: 0 additions & 1 deletion packages/spacecat-shared-rum-api-client/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const eventCountFn = (type) => (bundle) => {
const eventCount = bundle.events.filter(
(e) => e.checkpoint === type,
).length * bundle.weight;
console.log(`eventCount for ${bundle.url} ${type}: ${eventCount}`);
return eventCount;
};

Expand Down

0 comments on commit dd5da28

Please sign in to comment.