fix: mapping (#2522)

* fix: mapping

* add logs

Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
This commit is contained in:
Fabi
2021-10-18 10:41:39 +02:00
committed by GitHub
parent 1de1b14282
commit 040b53305c
2 changed files with 3 additions and 1 deletions

View File

@@ -120,6 +120,7 @@ func (h *ProjectionHandler) Process(
return
case event := <-h.Handler.EventQueue:
if err := h.processEvent(ctx, event, reduce); err != nil {
logging.LogWithFields("HANDL-TUk5J", "projection", h.ProjectionName).WithError(err).Warn("process failed")
continue
}
h.triggerShouldPush(0)
@@ -137,6 +138,7 @@ func (h *ProjectionHandler) Process(
return
case event := <-h.Handler.EventQueue:
if err := h.processEvent(ctx, event, reduce); err != nil {
logging.LogWithFields("HANDL-horKq", "projection", h.ProjectionName).WithError(err).Warn("process failed")
continue
}
h.triggerShouldPush(0)