Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
assafvayner committed Jan 15, 2025
1 parent d19efcb commit b159ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hf_xet/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ fn init_global_logging(py: Python) -> Option<TelemetryTaskInfo> {
.or_else(|_| EnvFilter::try_new(DEFAULT_LOG_LEVEL))
.unwrap_or_default();

// If the variable is not present do not create the telemetry task
// Client-side telemetry, default is OFF
// To enable telemetry set env var HF_HUB_ENABLE_TELEMETRY
if env::var("HF_HUB_ENABLE_TELEMETRY").is_err_and(|e| e == env::VarError::NotPresent) {
tracing_subscriber::registry().with(fmt_layer).with(filter_layer).init();
None
Expand Down

0 comments on commit b159ef2

Please sign in to comment.