Many: factor out logger implementation from upload/koji

The upload/koji package functions were creating a logger and then were
using it. This is not ideal for a library implementation.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-07-07 14:22:55 +02:00 committed by Tomáš Hozza
parent 60014b1218
commit ca1e1dce36
7 changed files with 60 additions and 46 deletions

View file

@ -53,7 +53,7 @@ func TestKojiRefund(t *testing.T) {
Principal: "osbuild-krb@LOCAL",
KeyTab: shareDir + "/client.keytab",
}
k, err := koji.NewFromGSSAPI(server, credentials, transport)
k, err := koji.NewFromGSSAPI(server, credentials, transport, nil)
require.NoError(t, err)
defer func() {
@ -114,7 +114,7 @@ func TestKojiImport(t *testing.T) {
Principal: "osbuild-krb@LOCAL",
KeyTab: shareDir + "/client.keytab",
}
k, err := koji.NewFromGSSAPI(server, credentials, transport)
k, err := koji.NewFromGSSAPI(server, credentials, transport, nil)
require.NoError(t, err)
defer func() {