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

cli: add debug mode to upload-bin #3672

Closed
wants to merge 1 commit into from
Closed

Conversation

AliceInHunterland
Copy link
Contributor

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 4.34783% with 22 lines in your changes missing coverage. Please review.

Project coverage is 83.07%. Comparing base (b97d0b2) to head (0fd9717).

Files with missing lines Patch % Lines
cli/util/upload_bin.go 0.00% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3672      +/-   ##
==========================================
+ Coverage   83.04%   83.07%   +0.03%     
==========================================
  Files         334      334              
  Lines       46613    46623      +10     
==========================================
+ Hits        38708    38732      +24     
+ Misses       6333     6313      -20     
- Partials     1572     1578       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

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

Should work, let's see the logs after testing, but let's not merge it into master. Binary can be taken from GA job anyway.

if errUpload != nil {
return errUpload
}
fmt.Fprintf(ctx.App.Writer, "Uploaded block %d with object ID: %s\n", blockIndex, resOid.String())
Copy link
Member

Choose a reason for hiding this comment

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

Let's move it under --debug, d flag, these logs are useful. By default we don't want these logs to be enabled, but it's a nice opportunity to have them in debug mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

only for blocks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed index files OIDs logging.

@AliceInHunterland AliceInHunterland changed the title cli: add logs for upload-bin for testing purposes cli: add debug mode to upload-bin Nov 15, 2024
@AliceInHunterland AliceInHunterland marked this pull request as ready for review November 15, 2024 12:39
@AliceInHunterland AliceInHunterland deleted the uploader-verbose branch November 15, 2024 14:06
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 this pull request may close these issues.

2 participants