You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adding all logging context data to worker and saga log entries (#215)
* adding all logging context data to worker and saga log entries
* added logging with context when command or reply received for saga def but no saga correlation id found
* removing minor discrepancies and updating documentation
imsm.Log().WithField("saga_correlation_id", message.SagaCorrelationID).Warn("message routed with SagaCorrelationID but no saga instance with the same id found")
181
+
logInContext.Warn("message routed with SagaCorrelationID but no saga instance with the same id found")
e:=fmt.Errorf("Warning:Command or Reply message with no saga reference received. message will be dropped.\nmessage as of type:%v", reflect.TypeOf(message).Name())
189
-
returne
194
+
logInContext.Warn("command or reply message with no saga reference received")
195
+
returnerrors.New("can not resolve saga instance for message")
190
196
} else {
191
197
192
-
imsm.Log().WithFields(logrus.Fields{"saga_type": def.sagaType, "message": msgName}).Info("fetching saga instances by type")
198
+
logInContext.Info("fetching saga instances by type")
0 commit comments