Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git_trace_set in Rugged #902

Open
Chocrates opened this issue Feb 8, 2022 · 4 comments
Open

git_trace_set in Rugged #902

Chocrates opened this issue Feb 8, 2022 · 4 comments

Comments

@Chocrates
Copy link

It doesn't look like git_trace_set is implemented for Rugged. Is that true?
If not how does one activate tracing when using Rugged?

@carlosmn
Copy link
Member

carlosmn commented Feb 9, 2022

It's true. You cannot enable tracing from rugged. One would first have to add that feature and link against a libgit2 with tracing enabled.

@Chocrates
Copy link
Author

Do you know if we have any documentation I could follow to add the methods? @carlosmn

@ethomson
Copy link
Member

ethomson commented Feb 9, 2022

One warning here is that libgit2 - generally speaking, at least - does not really emit any useful tracing for you to catch. If you're running into problems that you need to surface into your logging system, and you're going to go instrument libgit2 to catch some error, that's great. (That's what we added the logging functionality for.)

If you're going to add a bunch of trace statements in libgit2, then it makes sense to do this work.

I just wanted to mention that in case you were planning on wiring up tracing in rugged itself, and then were disappointed when you didn't see anything. 😁

(Actually, I think some of the http code sends tracing because it helped implement it.)

@Chocrates
Copy link
Author

Ah thank you @ethomson maybe I will hold off then. I am trying to debug intermittent clone errors with Rugged, was hoping for GIT_TRACE and GIT_TRACE_PACKET type of data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants