forked from mirrors/jj
git: enable libgit2 debug logging on --debug
This commit is contained in:
parent
9fb5307b78
commit
7802fa7725
1 changed files with 3 additions and 0 deletions
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue