use internal logger instead of std.log

This commit is contained in:
Pierre Tachoire
2025-08-08 16:21:23 +02:00
parent fbd40a6514
commit f09caec09a
2 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
const std = @import("std");
const log = std.log.scoped(.mouse_event);
const log = @import("../../log.zig");
const parser = @import("../netsurf.zig");
const Event = @import("event.zig").Event;
@@ -69,7 +69,7 @@ pub const MouseEvent = struct {
});
if (!std.mem.eql(u8, event_type, "click")) {
log.warn("MouseEvent currently only supports listeners for 'click' events!", .{});
log.warn(.mouse_event, "unsupported mouse event", .{ .event = event_type });
}
return mouse_event;

View File

@@ -40,6 +40,7 @@ pub const Scope = enum {
web_api,
xhr,
polyfill,
mouse_event,
};
const Opts = struct {