func (l *LoggerHandler) Action(m *integrate.Message, logger integrate.Logger) (*integrate.Message, error) { logger.Debug("Received Action for message %v", m) newMessage := m.Copy() newMessage.AddContext("logged", true) return newMessage, nil }
func (l *LoggerHandler) ShouldAction(m *integrate.Message, logger integrate.Logger) bool { logger.Debug("Received should action for message %v", m) return true }