Skip to content

Commit

Permalink
Add meaningful message
Browse files Browse the repository at this point in the history
  • Loading branch information
descholar-ceo committed Feb 12, 2024
1 parent fcaefbc commit 7737506
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gato/runner.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ module Gato

q.subscribe(no_ack: false, block: true) do |msg|
message = JSON.parse msg.body_io.to_s
Log.notice { "Received a new Message" }
Log.notice { "Received a new message for #{param[0][:queue_name]} queue" }
param[0][:block].call message
msg.ack
Log.notice { "Done" }
Log.notice { "Done processing the new message!" }
end
end
end
Log.notice { "El gato no maúlla..." }
end
end
end

0 comments on commit 7737506

Please sign in to comment.