Skip to content

Commit

Permalink
✨ add addon Adapter.Log.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Nov 7, 2023
1 parent ee70713 commit 9f642fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Tackle hub/addon integration.
package addon

import (
logapi "github.com/go-logr/logr"
"github.com/jortel/go-utils/logr"
"github.com/konveyor/tackle2-hub/binding"
"github.com/konveyor/tackle2-hub/settings"
Expand Down Expand Up @@ -67,6 +68,8 @@ type Filter = binding.Filter
type Adapter struct {
// Task API.
Task
// Log is the addon logger.
Log logapi.Logger
// Settings API.
Setting Setting
// Application API.
Expand Down Expand Up @@ -141,6 +144,7 @@ func newAdapter() (adapter *Adapter) {
Task: Task{
richClient: richClient,
},
Log: Log,
Setting: richClient.Setting,
Application: richClient.Application,
Identity: richClient.Identity,
Expand Down

0 comments on commit 9f642fd

Please sign in to comment.