-
Notifications
You must be signed in to change notification settings - Fork 131
chore(provider): meaningful info level log #940
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
Conversation
provider/reprovider.go
Outdated
start := time.Now() | ||
err := doProvideMany(s.ctx, s.rsys, keys) | ||
if err != nil { | ||
log.Debugf("reproviding failed %v", err) | ||
log.Infof("reproviding failed %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💭 Should this be an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, an error is only returned if the DHT provider was unable to provide any record.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes sense.
provider/reprovider.go
Outdated
start := time.Now() | ||
err := doProvideMany(s.ctx, s.rsys, keys) | ||
if err != nil { | ||
log.Debugf("reproviding failed %v", err) | ||
log.Infof("reproviding failed %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, an error is only returned if the DHT provider was unable to provide any record.
Triage:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added some more logging and consolidated logging facilities into provider
.
arguably, these are not low-level details from DEBUG level of individual CIDs, but high level start/stop of reprovide event
f43625c
to
6cd7e50
Compare
Arguably, these are not low-level details from DEBUG level of individual CIDs, but high level INFO about start/stop of reprovide.