chore: log github requests
This commit is contained in:
parent
90e8198009
commit
e6bb129f68
2 changed files with 5 additions and 3 deletions
|
|
@ -9,6 +9,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/evcc-io/evcc/util"
|
||||
"github.com/evcc-io/evcc/util/request"
|
||||
"github.com/google/go-github/v32/github"
|
||||
"github.com/hashicorp/go-version"
|
||||
)
|
||||
|
|
@ -27,11 +29,11 @@ type Repo struct {
|
|||
}
|
||||
|
||||
// NewRepo creates repository adapter
|
||||
func NewRepo(owner, repository string) *Repo {
|
||||
func NewRepo(log *util.Logger, owner, repository string) *Repo {
|
||||
r := &Repo{
|
||||
owner: owner,
|
||||
repository: repository,
|
||||
Client: github.NewClient(nil),
|
||||
Client: github.NewClient(request.NewClient(log)),
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ func Run(log *util.Logger, httpd webServer, outChan chan<- util.Param) {
|
|||
u := &watch{
|
||||
log: log,
|
||||
outChan: outChan,
|
||||
repo: NewRepo(owner, repository),
|
||||
repo: NewRepo(log, owner, repository),
|
||||
}
|
||||
|
||||
c := make(chan *github.RepositoryRelease, 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue