Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance logWarn message #2724

Merged
merged 1 commit into from
Jun 20, 2018
Merged

enhance logWarn message #2724

merged 1 commit into from
Jun 20, 2018

Conversation

jsnellbaker
Copy link
Collaborator

Type of change

  • Refactoring (no functional changes, no api changes)

Description of change

This is to enhance the utils.logWarn message to act like its logInfo and logError counterparts.

If you pass in an object that's relevant to the problem (ie utils.logWarn('this object is missing stuff: ', myVar);, that object will be included in the browser's console allowing you to easily see it contents.

This is the same functionality that lets you see the bidRequests and bidsReceived objects in the console in 1.x. See https://github.com/prebid/Prebid.js/blob/master/src/auction.js#L191 for reference usage.

Copy link
Contributor

@mike-chowla mike-chowla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mike-chowla mike-chowla added the needs 2nd review Core module updates require two approvals from the core team label Jun 18, 2018
@jaiminpanchal27 jaiminpanchal27 merged commit f60e239 into master Jun 20, 2018
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
@mkendall07 mkendall07 deleted the logWarn_updates branch August 17, 2018 15:13
florevallatmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Sep 6, 2018
StefanWallin pushed a commit to mittmedia/Prebid.js that referenced this pull request Sep 28, 2018
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants