summaryrefslogtreecommitdiff
path: root/core/replica.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/replica.zig')
-rw-r--r--core/replica.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/replica.zig b/core/replica.zig
index 31a06214..f290cdb3 100644
--- a/core/replica.zig
+++ b/core/replica.zig
@@ -2201,6 +2201,7 @@ pub const Peers = struct {
ps.t.whole_digest = std.c.getenv("PARDES_REPLICA_TRACE") == null;
ps.screens = .init(ps.gpa);
tape.on = &ps.t;
+ core.tape = &ps.t;
ps.recording = true;
ps.samples = std.c.getenv("PARDES_REPLICA_STATS") != null;
}
@@ -2405,6 +2406,7 @@ pub const Peers = struct {
ps.screens.deinit(core);
if (core.host.vtable == &ps.t.vtable) core.host = ps.t.real;
tape.on = null;
+ core.tape = core.opts.tape orelse &tape.none;
tape.release(&ps.t);
ps.recording = false;
}