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

fix: show iso-git err qty in logs #559

Merged
merged 2 commits into from Apr 5, 2024

Conversation

cristiand391
Copy link
Member

What does this PR do?

updates debug log about isogit error to show qty of errors (logs only include the first 5).

What issues does this PR fix or reference?

@W-15347866@

@@ -280,7 +280,7 @@ export class ShadowRepo {
});
} catch (e) {
if (e instanceof git.Errors.MultipleGitError) {
this.logger.error('multiple errors on git.add', e.errors.slice(0, 5));
this.logger.error(`${e.errors.length} errors on git.add, showing the first 5:`, e.errors.slice(0, 5));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any specific reason it shows only the first 5 errors?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

large deployments could result a 4-5 digit number of these?

@mshanemc mshanemc merged commit 09b5b75 into main Apr 5, 2024
30 checks passed
@mshanemc mshanemc deleted the cd/improve-multiple-git-error-debug branch April 5, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants