Skip to content

Commit fa992d7

Browse files
authored
Merge pull request #493 from vtex-apps/chore/improveLog
Add new log line to the compareResults function so we can estimate the amount of requests that are different.
2 parents 3468a92 + 92d7cde commit fa992d7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Add new log line to the compareResults function so we can estimate the amount of requests that are different.
13+
1014
## [1.78.0] - 2025-09-24
1115

1216
### Changed

node/utils/compareResults.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ export async function compareApiResults<T>(
134134
message: `${logPrefix}: Results differ`,
135135
params: JSON.stringify(options.args),
136136
})
137+
} else if (areEqual) {
138+
logger.info({
139+
// Since the log level is indexed we are using it to get a sense of the % of results that are equal.
140+
message: `${logPrefix}: Results differ`,
141+
params: JSON.stringify(options.args),
142+
})
137143
}
138144

139145
if (!hasError1) {

0 commit comments

Comments
 (0)