Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from scm-spain/loggerFix
Browse files Browse the repository at this point in the history
Fix problem with logger
  • Loading branch information
pablovegau authored Feb 14, 2019
2 parents 69d3c65 + e9b7c27 commit 525b46d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@schibstedspain/openads-appnexus-prebid",
"version": "2.0.0",
"version": "2.0.1",
"description": "OpenAds AppNexus connector with Prebid features",
"main": "dist/",
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions src/openads-appnexus/AppNexusConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,15 @@ export default class AppNexusConnector {
enableDebug({debug}) {
this._astClient.debugMode({debug})
this._loggerProvider.debugMode({debug})
if (debug) {
this._logger.debug(
this._logger.name,
'| Enabled debug mode on AppNexusConnector | pageOpts:',
this._pageOpts,
'| prebidConfig:',
this._prebidConfig
)
}
}
}
const consumer = adRepository => id => status => data =>
Expand Down
1 change: 0 additions & 1 deletion src/openads-appnexus/AstClientImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default class AstClientImpl {
}

setPageOpts(data) {
this._logger.debug(this._logger.name, '| setPageOpts | pageOpts:', data)
this._apnTag.anq.push(() => this._apnTag.setPageOpts(data))
return this
}
Expand Down
1 change: 0 additions & 1 deletion src/openads-appnexus/PrebidClientImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default class PrebidClientImpl {
}

setConfig({config = {}} = {}) {
this._logger.debug(this._logger.name, '| setConfig | config:', config)
this._pbjs.que.push(() => {
this._pbjs.setConfig(config.core)
this._pbjs.bidderSettings = config.bidderSettings
Expand Down

0 comments on commit 525b46d

Please sign in to comment.