fix(log): allow std.log calls outside of actor contexts

This commit is contained in:
CJ van den Berg 2024-06-13 16:56:49 +02:00
parent 578b7bdbda
commit 3dc56ea6db
2 changed files with 11 additions and 2 deletions

View file

@ -133,6 +133,8 @@ pub fn main() anyerror!void {
const log_proc = try log.spawn(&ctx, a, &env);
defer log_proc.deinit();
log.set_std_log_pid(log_proc.ref());
defer log.set_std_log_pid(null);
env.set("restore-session", (res.args.@"restore-session" != 0));
env.set("no-alternate", (res.args.@"no-alternate" != 0));