From 7802fa77255ec68bc0105b697d2af8847bdd8fdc Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Thu, 6 Jun 2024 03:49:05 -0700 Subject: [PATCH] git: enable libgit2 debug logging on --debug --- cli/src/cli_util.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index f1502295d..41d0874b8 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -184,6 +184,9 @@ impl TracingSubscription { }) .map_err(|err| internal_error_with_message("failed to enable debug logging", err))?; tracing::info!("debug logging enabled"); + git2::trace_set(git2::TraceLevel::Trace, |level,message| { + tracing::debug!("libgit2: {level:?} {message}"); + }); Ok(()) } }