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

Add more logging with enabled debug mode #408

Closed
fey opened this issue May 14, 2024 · 4 comments · Fixed by #412
Closed

Add more logging with enabled debug mode #408

fey opened this issue May 14, 2024 · 4 comments · Fixed by #412

Comments

@fey
Copy link

fey commented May 14, 2024

Is your feature request related to a problem? Please describe.
I have issues with downloading repositories inside docker image. I dont know what is problem - with permissions, ssh or something else..

Describe the solution you'd like

Add more output from git with enabled debug

Describe alternatives you've considered

Additional context
Output with enabled debug:

------------- GIT DEBUG -------------
(exec.Cmd) /usr/bin/git clone git@gitlab.hexlet.io:hexlethq/boilerplates/java_example_user_project.git /tmp/hexlethq/boilerplates/java_example_user_project

============ Issues ============

Problem trying to clone Repo: git@gitlab.hexlet.io:hexlethq/boilerplates/go_example_project.git Error: exit status 128
...
@fey fey changed the title Add more logging with enabled debu Add more logging with enabled debug mode May 14, 2024
@gabrie30
Copy link
Owner

gabrie30 commented May 15, 2024

As far as gits error message on clones I believe we already return as much information as we can. Git has very vague error messages unfortunately.

@fey
Copy link
Author

fey commented May 15, 2024

When I used a Docker container, I ran into access issues on the file system. Unfortunately ghorg did not display this information and I had to manually run git clone to see what the problem was. Is there any way to output this kind of information when using ghorg? 🤔

@gabrie30
Copy link
Owner

@fey I added some more logging in the git commands if you wanted to try it out

@fey
Copy link
Author

fey commented May 16, 2024

Thank you, it works well!

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

Successfully merging a pull request may close this issue.

2 participants