Skip to content

Commit

Permalink
error logs added
Browse files Browse the repository at this point in the history
  • Loading branch information
gireesh-naidu committed Dec 5, 2023
1 parent 800f149 commit 6162250
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions builder/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func (n *Node) loadData(ctx context.Context) error {
}
workers, err := driverClient.ListWorkers(ctx)
if err != nil {
logrus.Errorf("log-devtron : error in ListWorkers, %s:%s", " err ", err.Error())
return errors.Wrap(err, "listing workers")
}
for _, w := range workers {
Expand Down
2 changes: 2 additions & 0 deletions driver/kubernetes/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package kubernetes
import (
"context"
"fmt"
"github.com/sirupsen/logrus"
"net"
"strings"
"time"
Expand Down Expand Up @@ -134,6 +135,7 @@ func (d *Driver) Info(ctx context.Context) (*driver.Info, error) {
}
pods, err := podchooser.ListRunningPods(ctx, d.podClient, depl)
if err != nil {
logrus.Errorf("log-devtron : error in listing pod by labelSelector, %s:%s", " err ", err.Error())
return nil, err
}
var dynNodes []store.Node
Expand Down
1 change: 1 addition & 0 deletions driver/kubernetes/podchooser/podchooser.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func ListRunningPods(ctx context.Context, client clientcorev1.PodInterface, depl
}
podList, err := client.List(ctx, listOpts)
if err != nil {
logrus.Errorf("log-devtron : error in listing pod by labelSelector, %s:%s", " labelSelector ", selector.String())
return nil, err
}
var runningPods []*corev1.Pod
Expand Down

0 comments on commit 6162250

Please sign in to comment.