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:
parent
5f939fd666
commit
7884d56211
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue