ok/jj
1
0
Fork 0
forked from mirrors/jj

git: enable libgit2 debug logging on --debug

This commit is contained in:
Martin von Zweigbergk 2024-06-06 03:49:05 -07:00
parent 9fb5307b78
commit 7802fa7725
No known key found for this signature in database

View file

@ -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(())
}
}