fix(log): allow std.log calls outside of actor contexts
This commit is contained in:
parent
578b7bdbda
commit
3dc56ea6db
2 changed files with 11 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue