diff --git a/src/Renderer.js b/src/Renderer.js index 772d8d93655..d3dd23b50af 100644 --- a/src/Renderer.js +++ b/src/Renderer.js @@ -24,6 +24,7 @@ export function Renderer(options) { this.handlers = {}; this.id = id; this.renderNow = renderNow; + this.adUnitCode = adUnitCode; // a renderer may push to the command queue to delay rendering until the // render function is loaded by loadExternalScript, at which point the the command @@ -101,7 +102,7 @@ Renderer.prototype.process = function() { try { this.cmd.shift().call(); } catch (error) { - logError('Error processing Renderer command: ', error); + logError(`Error processing Renderer command on ad unit '${this.adUnitCode}':`, error); } } }; diff --git a/src/adapters/bidderFactory.js b/src/adapters/bidderFactory.js index 2e3f2f3ec8f..23a1fe79c88 100644 --- a/src/adapters/bidderFactory.js +++ b/src/adapters/bidderFactory.js @@ -310,7 +310,7 @@ export function newBidder(spec) { } adapterManager.callBidderError(spec.code, error, bidderRequest) events.emit(EVENTS.BIDDER_ERROR, { error, bidderRequest }); - logError(`Server call for ${spec.code} failed: ${errorMessage} ${error.status}. Continuing without bids.`); + logError(`Server call for ${spec.code} failed: ${errorMessage} ${error.status}. Continuing without bids.`, {bidRequests: validBidRequests}); }, onBid: (bid) => { const bidRequest = bidRequestMap[bid.requestId];