-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
downloader: added set log prefix grpc method (#11731)
To print the current download progress, we currently call the GRPC method RecalcStats for every log entry. However, given the frequent updates to the downloader in recent days, we may need to add more information to the logs. This would require updating the Go interfaces, which can be painful. To streamline this process, I've added a log prefix to move the responsibility of logging the download progress directly to the downloader. This change also allows us to print a proper prefix (currently "OtterSync"). As a result, we may soon be able to remove StatsReply, since Erigon is primarily concerned with whether the download is complete or not.
- Loading branch information
Showing
9 changed files
with
221 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
141 changes: 106 additions & 35 deletions
141
erigon-lib/gointerfaces/downloaderproto/downloader.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
erigon-lib/gointerfaces/downloaderproto/downloader_client_mock.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
erigon-lib/gointerfaces/downloaderproto/downloader_grpc.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.