diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/main.zig | 3 | ||||
| -rw-r--r-- | src/lib/reply.zig | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/main.zig b/src/bin/main.zig index db41f36..76504ef 100644 --- a/src/bin/main.zig +++ b/src/bin/main.zig @@ -96,6 +96,7 @@ fn session(alloc: std.mem.Allocator, io: Io, stream: *Io.net.Stream) !void { else => |e| return e, }; _ = arena.reset(.retain_capacity); + std.debug.print("C: {s}", .{line}); if (in_data) { if (std.mem.eql(u8, line, ".\r\n")) { @@ -107,7 +108,7 @@ fn session(alloc: std.mem.Allocator, io: Io, stream: *Io.net.Stream) !void { }; try nv.Reply.single(.ok, "Queued").send(w); try w.flush(); - std.debug.print("App {{\n\t body: {s}\n\tsender: {s}\n\trecipients: {any}\n}}\n", .{ app.body.items, app.sender.?, app.recipients.items }); + // std.debug.print("App {{\n\t body: {s}\n\tsender: {s}\n\trecipients: {any}\n}}\n", .{ app.body.items, app.sender.?, app.recipients.items }); } else { const status = try app.appendBodyLine(line); switch (status) { diff --git a/src/lib/reply.zig b/src/lib/reply.zig index 5b20b9c..866f6b4 100644 --- a/src/lib/reply.zig +++ b/src/lib/reply.zig @@ -38,6 +38,7 @@ pub const Reply = struct { for (self.lines, 0..) |line, i| { const sep: u8 = if (i == self.lines.len - 1) ' ' else '-'; try w.print("{d}{c}{s}\r\n", .{ code, sep, line }); + std.debug.print("S: {d}{c}{s}\r\n", .{ code, sep, line }); } } }; |
