No release in over a year
Logs that a Eventide message has been ignored
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Log Ignored Message

Using evt-log to log that an Eventide Message has been logged

Installation

Add this line to your application's Gemfile:

gem 'hubbado-log_ignored_message'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hubbado-log_ignored_message

Usage

Use it inside an Eventide handler to log when a messge has been ignored

class SomeHandler
  dependency :log_ignored_ignored, LogIgnoredMessage

  def configure
    LogIgnoredMessage.configure(self)
  end

  handle SomeMessage do |some_message|
   ...
     if some_entity.already_processed?(some_message)
       log_ignored_message.(some_message, "already processed")

       return
     end
   ...
  end
end

This will call:

logger.info(
  "SomeMessage #{some_message.metadata.global_position} ignored, " \
  "already processed",
  tag: :ignored
)