mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-16 17:01:28 +00:00
fix: switch log level of failed locks to debug (#5746)
This commit is contained in:
parent
79c528a2b6
commit
c12c2f09a4
@ -176,7 +176,7 @@ func (o *OPStorage) lockAndGenerateSigningKeyPair(ctx context.Context, algorithm
|
|||||||
if errors.IsErrorAlreadyExists(err) {
|
if errors.IsErrorAlreadyExists(err) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
logging.OnError(err).Warn("initial lock failed")
|
logging.OnError(err).Debug("initial lock failed")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ func (p *Storage) lockAndGenerateCertificateAndKey(ctx context.Context, usage do
|
|||||||
if errors.IsErrorAlreadyExists(err) {
|
if errors.IsErrorAlreadyExists(err) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
logging.OnError(err).Warn("initial lock failed")
|
logging.OnError(err).Debug("initial lock failed")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ func (h *ProjectionHandler) schedule(ctx context.Context) {
|
|||||||
errs := h.lock(lockCtx, h.requeueAfter, "system")
|
errs := h.lock(lockCtx, h.requeueAfter, "system")
|
||||||
if err, ok := <-errs; err != nil || !ok {
|
if err, ok := <-errs; err != nil || !ok {
|
||||||
cancelLock()
|
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)
|
h.triggerProjection.Reset(h.requeueAfter)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -253,7 +253,7 @@ func (h *ProjectionHandler) schedule(ctx context.Context) {
|
|||||||
//wait until projection is locked
|
//wait until projection is locked
|
||||||
if err, ok := <-errs; err != nil || !ok {
|
if err, ok := <-errs; err != nil || !ok {
|
||||||
cancelInstanceLock()
|
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
|
failed = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,7 @@ func (s *spooledHandler) load(workerID string) {
|
|||||||
var err error
|
var err error
|
||||||
s.succeededOnce, err = s.hasSucceededOnce(ctx)
|
s.succeededOnce, err = s.hasSucceededOnce(ctx)
|
||||||
if err != nil {
|
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
|
errs <- err
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user