Skip to content

Commit

Permalink
fix: ommitted rows log at info level instead of warn level
Browse files Browse the repository at this point in the history
  • Loading branch information
jsterner30 committed Apr 17, 2024
1 parent e75655e commit 992478e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/reportWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class ReportWriter<T extends Data> {
} else if (!this.inputMatchesHeader(row)) {
logger.error(`The row input does not match the expected header for report: ${this._fileName}, input: ${stringifyJSON(row, 'regex exception')}`)
} else if (getEnv().filterReportExceptions && this._exceptions.length > 0 && ((relevantException = this.testRowAgainstExceptionsRegex(row)) != null)) {
logger.warn(`Omitting row for fileName: ${this._fileName}, row: ${stringifyJSON(row, this._fileName + ' row')} based on the following exception: ${stringifyJSON(relevantException, 'relevantException')}`)
logger.info(`Omitting row for fileName: ${this._fileName}, row: ${stringifyJSON(row, this._fileName + ' row')} based on the following exception: ${stringifyJSON(relevantException, 'relevantException')}`)
} else {
this._data.add(row)
}
Expand Down

0 comments on commit 992478e

Please sign in to comment.