@nxtedition/lib 23.6.8 → 23.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +7 -0
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -346,6 +346,13 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
346
346
|
let underPressure
|
|
347
347
|
if (appConfig.underPressure) {
|
|
348
348
|
underPressure = makeUnderPressure(appConfig.underPressure)
|
|
349
|
+
underPressure.pressure$.subscribe((pressure) => {
|
|
350
|
+
if (pressure) {
|
|
351
|
+
logger?.warn({ pressure }, 'pressure triggered')
|
|
352
|
+
} else {
|
|
353
|
+
logger?.debug('pressure cleared')
|
|
354
|
+
}
|
|
355
|
+
})
|
|
349
356
|
}
|
|
350
357
|
|
|
351
358
|
if (appConfig.couchdb || appConfig.couch) {
|