fix: unbreak logging of errors

This commit is contained in:
CJ van den Berg 2025-10-09 20:52:34 +02:00
parent 4e38d15878
commit 50c04d3937
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -88,7 +88,7 @@ fn store_reset(self: *Self) void {
fn receive(self: *Self, from: tp.pid_ref, m: tp.message) tp.result {
errdefer self.deinit();
var output: []const u8 = undefined;
if (try m.match(.{ "log", "error", tp.string, "std.log", "->", tp.extract(&output) })) {
if (try m.match(.{ "log", "error", tp.string, tp.string, "->", tp.extract(&output) })) {
if (self.subscriber) |subscriber| {
subscriber.send_raw(m) catch {};
} else {