Skip to content

Commit

Permalink
Logging bits
Browse files Browse the repository at this point in the history
Signed-off-by: Dean Troyer <[email protected]>
  • Loading branch information
dtroyer-salad committed Nov 28, 2023
1 parent 80b5070 commit 5d79d4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ 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.Debug("creating a CreatePod", pod.Name)
p.logger.Debugf("CreatePod: ", pod.Name)
createContainerObject := p.createContainersObject(pod)
createContainerGroup := p.createContainerGroup(createContainerObject, pod)

Expand Down Expand Up @@ -192,6 +192,7 @@ func (p *SaladCloudProvider) CreatePod(ctx context.Context, pod *corev1.Pod) err
}

func (p *SaladCloudProvider) UpdatePod(ctx context.Context, pod *corev1.Pod) error {
p.logger.Debugf("UpdatePod: %s: %+v", utils.GetPodName(pod.Namespace, pod.Name, pod), pod)
return nil
}

Expand Down

0 comments on commit 5d79d4a

Please sign in to comment.