git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commite875f35132a56e79ad2280a9669295b6adcc3abd
parent37d4a76570
authorIsaac Freund <[email protected]>
date2026-04-27 10:31
river: leverage std.log.defaultLog()

 river/main.zig | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/river/main.zig b/river/main.zig
index 210e2dc..37a7daa 100644
--- a/river/main.zig
+++ b/river/main.zig
@@ -322,10 +322,7 @@ pub fn logFn(
 
     if (scope != .default and !log_scopes.contains(scope)) return;
 
-    const scope_prefix = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): ";
-
-    stderr.print(level.asText() ++ scope_prefix ++ format ++ "\n", args) catch return;
-    stderr.flush() catch return;
+    log.defaultLog(level, scope, format, args);
 }
 
 /// See wlroots_log_wrapper.c