Commit 70476a7
Eric Bower
·
2026-08-03 11:07:47 -0400 EDT
parent 85b045c
chore: remove pty data from logs Closes: https://github.com/neurosnap/zmx/pull/227
1 files changed,
+7,
-2
+7,
-2
| ... | ... | @@ -826,7 +826,10 @@ pub const Daemon = struct { | |
| 826 | 826 | ); | |
| 827 | 827 | return; | |
| 828 | 828 | } | |
| 829 | - | std.log.debug("buffering pty input data={x}", .{data}); | |
| 829 | + | ||
| 830 | + | // NOTE: for local dev only | |
| 831 | + | // std.log.debug("buffering pty input data={x}", .{data}); | |
| 832 | + | ||
| 830 | 833 | self.pty_write_buf.appendSlice(gpa, data) catch |err| { | |
| 831 | 834 | std.log.warn( | |
| 832 | 835 | "pty input dropped {d} bytes: {s}", |
| ... | ... | @@ -836,7 +839,9 @@ pub const Daemon = struct { | |
| 836 | 839 | } | |
| 837 | 840 | ||
| 838 | 841 | pub fn handleInput(self: *Daemon, gpa: std.mem.Allocator, client: *Client, payload: []const u8) !void { | |
| 839 | - | std.log.debug("buffering pty input data={x}", .{payload}); | |
| 842 | + | // NOTE: for local dev only | |
| 843 | + | // std.log.debug("buffering pty input data={x}", .{payload}); | |
| 844 | + | ||
| 840 | 845 | // client is leader, send entire payload (ansi escape codes + text) | |
| 841 | 846 | if (self.leader_client_fd == client.socket_fd) { | |
| 842 | 847 | self.queuePtyInput(gpa, payload); |