From 9f642fd251d83a4eb0f78df0803da984503b3162 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Tue, 7 Nov 2023 07:40:58 -0800 Subject: [PATCH] :sparkles: add addon Adapter.Log. Signed-off-by: Jeff Ortel --- addon/adapter.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addon/adapter.go b/addon/adapter.go index 4fdda8681..22cdadb9a 100644 --- a/addon/adapter.go +++ b/addon/adapter.go @@ -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" @@ -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. @@ -141,6 +144,7 @@ func newAdapter() (adapter *Adapter) { Task: Task{ richClient: richClient, }, + Log: Log, Setting: richClient.Setting, Application: richClient.Application, Identity: richClient.Identity,