File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -379,6 +379,8 @@ pub const XMLHttpRequest = struct {
379
379
self .payload = try body_init .dupe (alloc );
380
380
}
381
381
382
+ log .debug ("{any} {any}" , .{ self .method , self .uri });
383
+
382
384
self .send_flag = true ;
383
385
self .impl .yield (self );
384
386
}
@@ -420,6 +422,8 @@ pub const XMLHttpRequest = struct {
420
422
self .req .? .wait () catch | e | return self .onErr (e );
421
423
},
422
424
.wait = > {
425
+ log .info ("{any} {any} {d}" , .{ self .method , self .uri , self .req .? .response .status });
426
+
423
427
self .priv_state = .done ;
424
428
self .response_headers = self .req .? .response .headers .clone (self .response_headers .allocator ) catch | e | return self .onErr (e );
425
429
@@ -506,6 +510,8 @@ pub const XMLHttpRequest = struct {
506
510
self .dispatchEvt ("readystatechange" );
507
511
self .dispatchProgressEvent ("error" , .{});
508
512
self .dispatchProgressEvent ("loadend" , .{});
513
+
514
+ log .debug ("{any} {any} {any}" , .{ self .method , self .uri , self .err });
509
515
}
510
516
511
517
pub fn _abort (self : * XMLHttpRequest ) void {
You can’t perform that action at this time.
0 commit comments