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

Prebid Core : Remove duplicate event call for actionDebug event #12193

Merged

Conversation

pm-komal-kumari
Copy link
Contributor

Type of change

  • Bugfix

Description of change

This PR removes the redundant auction debug logging that was present in the code. The debug log statement was found to be a duplicate of the implementation already handled by the logWarn function. The logWarn function is already invoked within the validateAdUnitPos function, ensuring that the necessary logging occurs without repetition.

By removing this duplicate logging, we streamline the code, reduce unnecessary verbosity in the logs, and improve overall maintainability. This change does not affect the existing functionality, as the necessary logging is still being performed through the logWarn function.

Screenshot 2024-08-30 at 4 19 38 PM

Other information

@patmmccann
Copy link
Collaborator

this appears to revert functionality as the event listeners would no longer fire

@jlquaccia
Copy link
Collaborator

looks like this change seems ok as it appears the same functionality is occurring here in the logWarn function as stated: https://github.com/prebid/Prebid.js/blob/master/src/utils.js#L235. @dgirardi can you confirm?

@patmmccann patmmccann self-assigned this Sep 6, 2024
@patmmccann
Copy link
Collaborator

Great point ty

@patmmccann patmmccann merged commit 1d094e9 into prebid:master Sep 6, 2024
6 checks passed
@jlquaccia
Copy link
Collaborator

Thanks @patmmccann !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants