Skip to content

Commit

Permalink
adding logInfo message to note the consentManagement module was activ…
Browse files Browse the repository at this point in the history
…ated (#2767)

* adding logInfo message to note the module was activated

* update unit test
  • Loading branch information
jsnellbaker authored and mkendall07 committed Jun 26, 2018
1 parent 0c4b815 commit bc16086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/consentManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export function setConfig(config) {
allowAuction = DEFAULT_ALLOW_AUCTION_WO_CONSENT;
utils.logInfo(`consentManagement config did not specify allowAuctionWithoutConsent. Using system default setting (${DEFAULT_ALLOW_AUCTION_WO_CONSENT}).`);
}

utils.logInfo('consentManagement module has been activated...');
$$PREBID_GLOBAL$$.requestBids.addHook(requestBidsHook, 50);
}
config.getConfig('consentManagement', config => setConfig(config.consentManagement));
2 changes: 1 addition & 1 deletion test/spec/modules/consentManagement_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('consentManagement', function () {
expect(userCMP).to.be.equal('iab');
expect(consentTimeout).to.be.equal(10000);
expect(allowAuction).to.be.true;
sinon.assert.callCount(utils.logInfo, 3);
sinon.assert.callCount(utils.logInfo, 4);
});
});

Expand Down

0 comments on commit bc16086

Please sign in to comment.