mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Add log to display telemetry state
This commit is contained in:
@@ -31,6 +31,9 @@ fn TelemetryT(comptime P: type) type {
|
||||
|
||||
pub fn init(allocator: Allocator, loop: *Loop, run_mode: RunMode) Self {
|
||||
const disabled = std.process.hasEnvVarConstant("LIGHTPANDA_DISABLE_TELEMETRY");
|
||||
if (builtin.mode != .Debug and builtin.is_test == false) {
|
||||
log.info("telemetry {s}", .{if (disabled) "disabled" else "enabled"});
|
||||
}
|
||||
|
||||
return .{
|
||||
.disabled = disabled,
|
||||
|
||||
Reference in New Issue
Block a user