wakatime/wakatime-cli

Control which errors should log on upstream

gandarez opened this issue · 1 comments

Errors like Backoff isn't a real error and should not be considered by the upstream method (aka run) and avoid adding it to the log files.

The implementation should replace the method below

func canLogError(err error) bool {
	return !errors.As(err, &api.ErrBackoff{})
}