Skip to content

Commit

Permalink
Improve logging by displaying topic and message
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Oct 7, 2023
1 parent ae05538 commit 2f34baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/loop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def next_message
time = Time.now

fields = mapper.call(topic, message)
puts "#{time} #{fields}"
puts "#{time} topic=#{topic} message=#{message} => #{fields}"

[time, fields]
end
Expand Down

0 comments on commit 2f34baa

Please sign in to comment.