diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-07-25 22:30:43 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-07-26 08:10:52 +0200 |
| commit | 3b3ce449e333c233767737b0f57bc2f01fd8beaa (patch) | |
| tree | 883347678d9313872c93c41c8d49589527993afd /src/link/tapi/yaml.zig | |
| parent | 27f471860a86e8a6c3a54be8aa704d7feadf6123 (diff) | |
| download | zig-3b3ce449e333c233767737b0f57bc2f01fd8beaa.tar.gz zig-3b3ce449e333c233767737b0f57bc2f01fd8beaa.zip | |
tapi: do not log errors using log.err
Diffstat (limited to 'src/link/tapi/yaml.zig')
| -rw-r--r-- | src/link/tapi/yaml.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/link/tapi/yaml.zig b/src/link/tapi/yaml.zig index 0fc165003a..5e3602f620 100644 --- a/src/link/tapi/yaml.zig +++ b/src/link/tapi/yaml.zig @@ -197,7 +197,7 @@ pub const Value = union(enum) { return Value{ .string = try arena.dupe(u8, value.string_value.items) }; } else { - log.err("Unexpected node type: {}", .{node.tag}); + log.debug("Unexpected node type: {}", .{node.tag}); return error.UnexpectedNodeType; } } @@ -270,7 +270,7 @@ pub const Value = union(enum) { if (try encode(arena, elem)) |value| { list.appendAssumeCapacity(value); } else { - log.err("Could not encode value in a list: {any}", .{elem}); + log.debug("Could not encode value in a list: {any}", .{elem}); return error.CannotEncodeValue; } } @@ -432,7 +432,7 @@ pub const Yaml = struct { } const unwrapped = value orelse { - log.err("missing struct field: {s}: {s}", .{ field.name, @typeName(field.type) }); + log.debug("missing struct field: {s}: {s}", .{ field.name, @typeName(field.type) }); return error.StructFieldMissing; }; @field(parsed, field.name) = try self.parseValue(field.type, unwrapped); |
