Skip to content

Commit

Permalink
fix condition for ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 16, 2024
1 parent d1b655f commit ae24742
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/logging/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ function isTypesenseIgnoreLogMessage(loggerModuleName: string, logMessage: strin
const msg2: string = 'Response Code was 201.'
const msg3 = 'Request /collections/logs/documents: Attempting POST request Try #1'
return (
(loggerModuleName.toLowerCase() === LOGGER_MODULE_NAMES.DATABASE &&
(logMessage === msg1 || logMessage === msg3)) ||
(logMessage.includes(msg1) && logMessage.includes(msg2))
loggerModuleName.toLowerCase() === LOGGER_MODULE_NAMES.DATABASE &&
(logMessage === msg1 ||
logMessage.includes(msg3) ||
(logMessage.includes(msg1) && logMessage.includes(msg2)))
)
}

Expand Down

0 comments on commit ae24742

Please sign in to comment.