less noisy in release mode

This commit is contained in:
Emil Lerch 2025-09-24 10:56:00 -07:00
parent a41c94b2c9
commit 036ddb7f49
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -450,7 +450,7 @@ pub const Parser = struct {
altered = final_buf[0..len :0];
if (altered.len == 0) {
std.log.info("Removed null word '{s}' in sentence {d} time(s). Sentence now empty", .{ trimmed, removals });
std.log.debug("Removed null word '{s}' in sentence {d} time(s). Sentence now empty", .{ trimmed, removals });
return error.SentenceEmptyAfterNullRemoval;
}
std.log.info("Removed null word '{s}' in sentence {d} time(s). Sentence now:\n\t{s}", .{