fix: console patcher initialised in main (#6252)
Co-authored-by: Hriday Taneja <hridayt@google.com> Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
parent
93559d65c8
commit
d46b91e09d
|
@ -24,6 +24,7 @@ import {
|
|||
import { themeManager } from './ui/themes/theme-manager.js';
|
||||
import { getStartupWarnings } from './utils/startupWarnings.js';
|
||||
import { getUserStartupWarnings } from './utils/userStartupWarnings.js';
|
||||
import { ConsolePatcher } from './ui/utils/ConsolePatcher.js';
|
||||
import { runNonInteractive } from './nonInteractiveCli.js';
|
||||
import { loadExtensions } from './config/extension.js';
|
||||
import { cleanupCheckpoints, registerCleanup } from './utils/cleanup.js';
|
||||
|
@ -158,6 +159,13 @@ export async function main() {
|
|||
argv,
|
||||
);
|
||||
|
||||
const consolePatcher = new ConsolePatcher({
|
||||
stderr: true,
|
||||
debugMode: config.getDebugMode(),
|
||||
});
|
||||
consolePatcher.patch();
|
||||
registerCleanup(consolePatcher.cleanup);
|
||||
|
||||
dns.setDefaultResultOrder(
|
||||
validateDnsResolutionOrder(settings.merged.dnsResolutionOrder),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue