跳转到内容
简体中文

DEFAULT_LOG_DEAD_LETTERS_DURING_SHUTDOWN

此内容尚不支持你的语言。

const DEFAULT_LOG_DEAD_LETTERS_DURING_SHUTDOWN: false = false

Defined in: src/diagnostics/DiagnosticsOptions.ts:33

Built-in default for DiagnosticsOptionsType.logDeadLettersDuringShutdown — off.

terminate() drains every stashed and queued user message to dead letters on the way down, so a large system’s teardown is a burst that is both expected and uninteresting. Logging it would make an orderly shutdown look like an incident, which is the fastest way to teach an operator to ignore the record entirely.