Skip to content

Commit

Permalink
Reduce log spamming (prebid#11922)
Browse files Browse the repository at this point in the history
The utiq module uses busy waiting to provide the `eid` values. Every busy waiting round it logs messages that are not actionable.
  • Loading branch information
muuki88 authored and mefjush committed Jul 19, 2024
1 parent 8762670 commit b19b80b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions modules/utiqIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ function getUtiqFromStorage() {
let utiqPassStorage = JSON.parse(
storage.getDataFromLocalStorage('utiqPass')
);
logInfo(
`${LOG_PREFIX}: Local storage utiqPass: ${JSON.stringify(
utiqPassStorage
)}`
);

if (
utiqPassStorage &&
Expand All @@ -40,12 +35,19 @@ function getUtiqFromStorage() {
utiqPassStorage.connectId.idGraph.length > 0
) {
utiqPass = utiqPassStorage.connectId.idGraph[0];

logInfo(
`${LOG_PREFIX}: Local storage utiqPass: ${JSON.stringify(
utiqPassStorage
)}`
);

logInfo(
`${LOG_PREFIX}: Graph of utiqPass: ${JSON.stringify(
utiqPass
)}`
);
}
logInfo(
`${LOG_PREFIX}: Graph of utiqPass: ${JSON.stringify(
utiqPass
)}`
);

return {
utiq:
Expand Down

0 comments on commit b19b80b

Please sign in to comment.