Skip to content

Commit

Permalink
fix: no reason during stats to avoid cardianality
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed Oct 31, 2023
1 parent 6d2db45 commit c23b14a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions warehouse/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (
"sync/atomic"
"time"

"github.com/rudderlabs/rudder-server/warehouse/logfield"

"github.com/rudderlabs/rudder-server/warehouse/bcm"

"github.com/lib/pq"
Expand Down Expand Up @@ -594,10 +596,9 @@ func (r *Router) createJobs(ctx context.Context, warehouse model.Warehouse) (err
"workspaceId": warehouse.WorkspaceID,
"destinationID": warehouse.Destination.ID,
"destType": warehouse.Destination.DestinationDefinition.Name,
"reason": err.Error(),
}).Count(1)

r.logger.Debugf("[WH]: Skipping upload loop since %s upload freq not exceeded: %v", warehouse.Identifier, err)
r.logger.Debugw("Skipping upload loop since upload freq not exceeded", logfield.Error, err.Error())

return nil
}
Expand Down

0 comments on commit c23b14a

Please sign in to comment.