{"version":"2.1.247","anchor":"debug-log-can-be-allowed-to-end-short-rather-than-block-at-e","canonical_anchor":"debug-log-can-be-allowed-to-end-short-rather-than-block-at-e","heading":"Debug log can be allowed to end short rather than block at exit","tier":"use","area":"Internals","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247\/e\/debug-log-can-be-allowed-to-end-short-rather-than-block-at-e","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247","markdown":"### Debug log can be allowed to end short rather than block at exit\n\nYou can let the debug log drop pending lines at exit instead of blocking shutdown.\n\n**What**\n\nA process can now start the debug logger with `syncExitDrain: false`, and when the v5 log storage backend is in use, queued lines still pending at exit are dropped instead of written. Startup prints a warning that the log may be truncated. Without an explicit false, the logger still drains as before.\n\n**Details**\n\n- Both conditions are required: the option set explicitly to false and the v5 storage backend active.\n\n**Evidence**\n\n`Sync exit drain off for this process: debug lines still queued at exit are dropped, so this log may end short`\n\n- Area: Internals\n- Names: `syncExitDrain`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5"}