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
@mkendall07 mkendall07 deleted the logWarn_updates branch August 17, 2018 15:13
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