feat: write early log output to stderr/stdout until TUI is initialized
This commit is contained in:
parent
8789e8b89c
commit
b913b8ad87
2 changed files with 34 additions and 1 deletions
|
@ -103,6 +103,8 @@ const InitError = error{
|
|||
keybind.LoadError;
|
||||
|
||||
fn init(allocator: Allocator) InitError!*Self {
|
||||
log.stdout(.disable);
|
||||
|
||||
var conf, const conf_bufs = root.read_config(@import("config"), allocator);
|
||||
|
||||
if (@hasDecl(renderer, "install_crash_handler") and conf.start_debugger_on_crash)
|
||||
|
@ -157,6 +159,8 @@ fn init(allocator: Allocator) InitError!*Self {
|
|||
self.rdr_.dispatch_event = dispatch_event;
|
||||
try self.rdr_.run();
|
||||
|
||||
log.stderr(.disable);
|
||||
|
||||
try project_manager.start();
|
||||
|
||||
try frame_clock.start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue