Skip to content

Commit

Permalink
fix: switch log level of failed locks to debug (#5746)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliobischof committed Apr 25, 2023
1 parent 79c528a commit c12c2f0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/api/oidc/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (o *OPStorage) lockAndGenerateSigningKeyPair(ctx context.Context, algorithm
if errors.IsErrorAlreadyExists(err) {
return nil
}
logging.OnError(err).Warn("initial lock failed")
logging.OnError(err).Debug("initial lock failed")
return err
}

Expand Down
2 changes: 1 addition & 1 deletion internal/api/saml/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (p *Storage) lockAndGenerateCertificateAndKey(ctx context.Context, usage do
if errors.IsErrorAlreadyExists(err) {
return nil
}
logging.OnError(err).Warn("initial lock failed")
logging.OnError(err).Debug("initial lock failed")
return err
}

Expand Down
4 changes: 2 additions & 2 deletions internal/eventstore/handler/handler_projection.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (h *ProjectionHandler) schedule(ctx context.Context) {
errs := h.lock(lockCtx, h.requeueAfter, "system")
if err, ok := <-errs; err != nil || !ok {
cancelLock()
logging.WithFields("projection", h.ProjectionName).OnError(err).Warn("initial lock failed for first schedule")
logging.WithFields("projection", h.ProjectionName).OnError(err).Debug("initial lock failed for first schedule")
h.triggerProjection.Reset(h.requeueAfter)
continue
}
Expand Down Expand Up @@ -253,7 +253,7 @@ func (h *ProjectionHandler) schedule(ctx context.Context) {
//wait until projection is locked
if err, ok := <-errs; err != nil || !ok {
cancelInstanceLock()
logging.WithFields("projection", h.ProjectionName).OnError(err).Warn("initial lock failed")
logging.WithFields("projection", h.ProjectionName).OnError(err).Debug("initial lock failed")
failed = true
continue
}
Expand Down
2 changes: 1 addition & 1 deletion internal/eventstore/v1/spooler/spooler.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (s *spooledHandler) load(workerID string) {
var err error
s.succeededOnce, err = s.hasSucceededOnce(ctx)
if err != nil {
logging.WithFields("view", s.ViewModel()).OnError(err).Warn("initial lock failed for first schedule")
logging.WithFields("view", s.ViewModel()).OnError(err).Debug("initial lock failed for first schedule")
errs <- err
return
}
Expand Down

1 comment on commit c12c2f0

@vercel
Copy link

@vercel vercel bot commented on c12c2f0 Apr 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

zitadel-docs.vercel.app
docs-git-main-zitadel.vercel.app
docs-zitadel.vercel.app

Please sign in to comment.