Skip to content

Commit

Permalink
chore(license): add proper log level
Browse files Browse the repository at this point in the history
  • Loading branch information
vikrantgupta25 committed Jan 29, 2025
1 parent dfa89b8 commit 24016f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/query-service/license/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ func (lm *Manager) ValidateV3(ctx context.Context) (reterr error) {
atomic.AddUint64(&lm.failedAttempts, 1)
// default to basic plan if validation fails for three consecutive times
if atomic.LoadUint64(&lm.failedAttempts) > 3 {
zap.L().Error("License validation completed with error for three consecutive times, defaulting to basic plan", zap.String("license_id", lm.activeLicenseV3.ID), zap.Bool("license_validation", false))
lm.activeLicenseV3 = nil
lm.activeFeatures = model.BasicPlan
setDefaultFeatures(lm)
err := lm.InitFeatures(lm.activeFeatures)
if err != nil {
zap.L().Error("Couldn't initialize features", zap.Error(err))
}
zap.L().Error("License validation completed with error for three consecutive times, defaulting to basic plan", zap.String("license_id", lm.activeLicenseV3.ID), zap.Bool("license_validation", false))
}

telemetry.GetInstance().SendEvent(telemetry.TELEMETRY_LICENSE_CHECK_FAILED,
Expand Down

0 comments on commit 24016f3

Please sign in to comment.