Skip to content

Commit af400c4

Browse files
authored
Fix email reporting on collection API errors (#1204)
2 parents 787442a + b7d9d23 commit af400c4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
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).
44

5+
## Unreleased [patch]
6+
7+
> 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.
8+
9+
### Fixed
10+
11+
- Fix email reporting on collection API errors
12+
513
## 9.2.2 - 2025-11-19
614

715
_Full changeset and discussions: [#1203](https://github.com/OpenTermsArchive/engine/pull/1203)._

src/collection-api/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (config.get('@opentermsarchive/engine.logger.sendMailOnError')) {
1717
from: config.get('@opentermsarchive/engine.logger.sendMailOnError.from'),
1818
host: config.get('@opentermsarchive/engine.logger.smtp.host'),
1919
username: config.get('@opentermsarchive/engine.logger.smtp.username'),
20-
password: process.env.SMTP_PASSWORD,
20+
password: process.env.OTA_ENGINE_SMTP_PASSWORD,
2121
ssl: true,
2222
timeout: 30 * 1000,
2323
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.

0 commit comments

Comments
 (0)