Skip to content

Commit

Permalink
PBjs Core Price Floors Module: improve logging on bid rejections to c…
Browse files Browse the repository at this point in the history
…larify which CPM is being compared with which floor (prebid#8655)

* Price floors module: improve logging on bid rejections to clarify which CPM is being compared with which floor

* Use full precision in log message
  • Loading branch information
dgirardi authored and JacobKlein26 committed Jul 12, 2022
1 parent 551ca13 commit 3af3f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/priceFloors.js
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ export function addBidResponseHook(fn, adUnitCode, bid) {
flooredBid.status = CONSTANTS.BID_STATUS.BID_REJECTED;
// if floor not met update bid with 0 cpm so it is not included downstream and marked as no-bid
flooredBid.cpm = 0;
logWarn(`${MODULE_NAME}: ${flooredBid.bidderCode}'s Bid Response for ${adUnitCode} was rejected due to floor not met`, bid);
logWarn(`${MODULE_NAME}: ${flooredBid.bidderCode}'s Bid Response for ${adUnitCode} was rejected due to floor not met (adjusted cpm: ${bid?.floorData?.cpmAfterAdjustments}, floor: ${floorInfo?.matchingFloor})`, bid);
return fn.call(this, adUnitCode, flooredBid);
}
return fn.call(this, adUnitCode, bid);
Expand Down

0 comments on commit 3af3f17

Please sign in to comment.