Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ add addon Adapter.Log. #550

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 API.
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