Skip to content

Lightpanda: the headless browser designed for AI and automation

log: make color helpers private

Adrià Arrufat76726cf4d401
diff --git a/src/log.zig b/src/log.zig
index e6f874172..6f0195ed8 100644
--- a/src/log.zig
+++ b/src/log.zig
@@ -96,12 +96,12 @@ fn initColorEnabled() void {
color_enabled_cached = std.Io.File.stderr().isTty(lp.io) catch false;
}
-pub fn isColorEnabled() bool {
+fn isColorEnabled() bool {
color_enabled_once.call();
return color_enabled_cached;
}
-pub fn colorEnabled() bool {
+fn colorEnabled() bool {
if (opts.color) |c| return c;
if (comptime lp.IS_TEST) return true;
return isColorEnabled();