disable action debug

This commit is contained in:
Mitchell Hashimoto
2022-07-08 17:38:50 -07:00
parent 4cc38e7281
commit 79f684ab0f

View File

@ -48,11 +48,11 @@ pub fn Stream(comptime Handler: type) type {
//log.debug("char: {x}", .{c}); //log.debug("char: {x}", .{c});
const actions = self.parser.next(c); const actions = self.parser.next(c);
for (actions) |action_opt| { for (actions) |action_opt| {
if (action_opt) |action| { // if (action_opt) |action| {
if (action != .print) { // if (action != .print) {
log.info("action: {}", .{action}); // log.info("action: {}", .{action});
} // }
} // }
switch (action_opt orelse continue) { switch (action_opt orelse continue) {
.print => |p| if (@hasDecl(T, "print")) try self.handler.print(p), .print => |p| if (@hasDecl(T, "print")) try self.handler.print(p),
.execute => |code| try self.execute(code), .execute => |code| try self.execute(code),