koji: fix excessive logging & monitoring
update koji init & finalize to use custom leveled logging This is mainly affects logging, but it also changes functionality slightly since init & finalize are now using the customCheckRetry, they are able to retry the "TLS timeout" error.
This commit is contained in:
parent
7c4d74481a
commit
e773d4896b
2 changed files with 9 additions and 4 deletions
|
|
@ -8,7 +8,6 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/hashicorp/go-retryablehttp"
|
||||
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||
"github.com/osbuild/osbuild-composer/internal/upload/koji"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
|
@ -42,7 +41,7 @@ func main() {
|
|||
}
|
||||
defer file.Close()
|
||||
|
||||
transport := &retryablehttp.RoundTripper{}
|
||||
transport := koji.CreateRetryableTransport()
|
||||
k, err := koji.NewFromPlain(server, "osbuild", "osbuildpass", transport)
|
||||
if err != nil {
|
||||
println(err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue