Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
coddmeistr committed Feb 6, 2025
1 parent ed63caa commit 564b3dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/billing/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"golang.org/x/sync/errgroup"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"runtime/debug"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -207,7 +208,7 @@ func (s *BillingServiceServer) dailyCronJobAction(ctx context.Context, log *zap.
log = log.Named("Action")
defer func() {
if err := recover(); err != nil {
log.Error("Recovered from panic", zap.Any("err", err))
log.Error("Recovered from panic", zap.Any("err", err), zap.String("stacktrace", string(debug.Stack())))
}
}()
// Jobs
Expand Down

0 comments on commit 564b3dc

Please sign in to comment.