Skip to content

Commit 986886f

Browse files
authored
replace sentry *fmt.wrapError with logger error (#102)
1 parent 689e0f7 commit 986886f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

operator/internal/controller/elastiservice_controller.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"sync"
77
"time"
88

9-
"github.com/getsentry/sentry-go"
109
"github.com/truefoundry/elasti/pkg/scaling"
1110
"k8s.io/apimachinery/pkg/types"
1211

@@ -74,7 +73,7 @@ func (r *ElastiServiceReconciler) Reconcile(ctx context.Context, req ctrl.Reques
7473
e := values.Success
7574
if err != nil {
7675
e = err.Error()
77-
sentry.CaptureException(err)
76+
r.Logger.Error("Error reconciling ElastiService.", zap.String("es", req.NamespacedName.String()), zap.Error(err))
7877
}
7978
duration := time.Since(startTime).Seconds()
8079
prom.CRDReconcileHistogram.WithLabelValues(req.String(), e).Observe(duration)

0 commit comments

Comments
 (0)