diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dcef183c..05efa439e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased [patch] + +> Development of this release was supported by the [French Ministry for Foreign Affairs](https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/diplomatie-numerique/) through its ministerial [State Startups incubator](https://beta.gouv.fr/startups/open-terms-archive.html) under the aegis of the Ambassador for Digital Affairs. + +### Fixed + +- Fix email reporting on collection API errors + ## 9.2.2 - 2025-11-19 _Full changeset and discussions: [#1203](https://github.com/OpenTermsArchive/engine/pull/1203)._ diff --git a/src/collection-api/logger.js b/src/collection-api/logger.js index 8bef5dd68..ce5ebb126 100644 --- a/src/collection-api/logger.js +++ b/src/collection-api/logger.js @@ -17,7 +17,7 @@ if (config.get('@opentermsarchive/engine.logger.sendMailOnError')) { from: config.get('@opentermsarchive/engine.logger.sendMailOnError.from'), host: config.get('@opentermsarchive/engine.logger.smtp.host'), username: config.get('@opentermsarchive/engine.logger.smtp.username'), - password: process.env.SMTP_PASSWORD, + password: process.env.OTA_ENGINE_SMTP_PASSWORD, ssl: true, timeout: 30 * 1000, formatter: args => args[Object.getOwnPropertySymbols(args)[1]], // Returns the full error message, the same visible in the console. It is referenced in the argument object with a Symbol of which we do not have the reference but we know it is the second one.