Skip to content

Commit 71a9807

Browse files
committed
remove debug logs
1 parent e823472 commit 71a9807

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/wasm.zig

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ export fn executeHttpSpecComplete(content_ptr: [*]const u8, content_len: usize)
137137

138138
// Parse the HTTPSpec content
139139
var items = HttpParser.parseContent(allocator, content) catch |err| {
140-
const error_msg = std.fmt.allocPrint(allocator, "Parse failed: {s}", .{@errorName(err)}) catch "Parse failed";
141-
defer allocator.free(error_msg);
142-
logErrorToConsole(error_msg);
143-
144140
const error_json = std.fmt.bufPrint(&result_buffer,
145141
\\{{"success": false, "error": "Parse failed: {s}", "results": []}}
146142
, .{@errorName(err)}) catch "{{\"success\": false, \"error\": \"JSON format error\", \"results\": []}}";
@@ -150,10 +146,6 @@ export fn executeHttpSpecComplete(content_ptr: [*]const u8, content_len: usize)
150146
};
151147

152148
const owned_items = items.toOwnedSlice() catch |err| {
153-
const error_msg = std.fmt.allocPrint(allocator, "Failed to convert items: {s}", .{@errorName(err)}) catch "Failed to convert items";
154-
defer allocator.free(error_msg);
155-
logErrorToConsole(error_msg);
156-
157149
const error_json = std.fmt.bufPrint(&result_buffer,
158150
\\{{"success": false, "error": "Failed to convert items: {s}", "results": []}}
159151
, .{@errorName(err)}) catch "{{\"success\": false, \"error\": \"JSON format error\", \"results\": []}}";
@@ -182,7 +174,6 @@ export fn executeHttpSpecComplete(content_ptr: [*]const u8, content_len: usize)
182174
var response = client.execute(request) catch |err| {
183175
const error_msg = std.fmt.allocPrint(allocator, "HTTP request failed: {s}", .{@errorName(err)}) catch "HTTP request failed";
184176
// Don't defer free - the TestResult needs to keep the string
185-
logErrorToConsole(error_msg);
186177

187178
results.append(TestResult.init(request_name, false, error_msg, null)) catch {
188179
logErrorToConsole("Failed to append test result");

web/httpspec.wasm

-8.05 KB
Binary file not shown.

0 commit comments

Comments
 (0)