From 0be9500902895cd3480cc5aebc1d969483ec765a Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Mon, 13 Nov 2023 10:28:07 -0600 Subject: [PATCH] provider logging Signed-off-by: Dean Troyer --- internal/provider/provider.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 77711ed..9e46852 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -105,9 +105,11 @@ func (p *SaladCloudProvider) NotifyPods(ctx context.Context, notifierCallback fu func (p *SaladCloudProvider) CreatePod(ctx context.Context, pod *corev1.Pod) error { ctx, span := trace.StartSpan(ctx, "CreatePod") defer span.End() - p.logger.Debugf("CreatePod: ", pod.Name) + p.logger.Infof("CreatePod: %s", pod.Name) createContainerObject := p.createContainersObject(pod) + p.logger.Debugf(" createContainerObject: %+v", createContainerObject) createContainerGroup := p.createContainerGroup(createContainerObject, pod) + p.logger.Debugf(" createContainerGroup: %+v", createContainerGroup[0]) _, r, err := p.apiClient. ContainerGroupsAPI.CreateContainerGroup(