1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-21 07:34:08 +00:00

log data type

This commit is contained in:
Rene Schallner 2023-09-12 18:19:12 +02:00
parent 5f939fd666
commit 7884d56211

View file

@ -632,6 +632,7 @@ pub fn Fiobj2HttpParam(o: fio.FIOBJ, a: std.mem.Allocator, dupe_string: bool) !?
if (data_len < 0) { if (data_len < 0) {
std.log.warn("WARNING: HTTP param binary file size negative: {d}\n", .{data_len}); std.log.warn("WARNING: HTTP param binary file size negative: {d}\n", .{data_len});
std.log.warn("FIOBJ_TYPE of data is: {d}\n", .{fio.fiobj_type(data)});
// try to read anyway // try to read anyway
std.log.warn("WARNING: Attempting to read anyway\n", .{}); std.log.warn("WARNING: Attempting to read anyway\n", .{});
@ -645,7 +646,6 @@ pub fn Fiobj2HttpParam(o: fio.FIOBJ, a: std.mem.Allocator, dupe_string: bool) !?
} else { } else {
if (data_buf.len != data_len) { if (data_buf.len != data_len) {
std.log.warn("WARNING: HTTP param binary file size mismatch: should {d}, is: {d}\n", .{ data_len, data_buf.len }); std.log.warn("WARNING: HTTP param binary file size mismatch: should {d}, is: {d}\n", .{ data_len, data_buf.len });
data_slice = "(zap: invalid data: negative size)";
} }
if (data_buf.len > 0) { if (data_buf.len > 0) {