1

I'm running a command with GitPython git.execute(). Currently, I'm writing the return value to a window. Because the command takes some time, the window will not show any progress for a few seconds and then write all the output once the command completes.

I want to continuously print output to the window to show the user what's happening. I have implemented a logging.Logger for this, but I don't know how to connect the git.execute() output to it. So how can I do that?

1
  • I don't think you can natively stream output to a logger. You would need to write a custom implementation. Commented Dec 11, 2023 at 18:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.