zilverline / sequent

CQRS & event sourcing framework for Ruby
https://sequent.io
MIT License
541 stars 58 forks source link

"Debug Messages Flood: [MessageHandler] Handler NilClass Handling Commands Indicate Uninitialized Handler #411

Closed eduscrakozabrus closed 7 months ago

eduscrakozabrus commented 7 months ago
    def dispatch_message(message, handlers)
      handlers.each do |handler|
        Sequent.logger.debug("[MessageHandler] Handler #{@context.class} handling #{message.class}")
        instance_exec(message, &handler)
      end
    end

in logs [MessageHandler] Handler NilClass handling Service::Contact::Commands::ContactReceiveMessageCommand