Commit 9a3a32bc authored by Dylan Griffith's avatar Dylan Griffith

ProcessBookkeepingService encode logged items for ES ingestion

ES ingestion won't be able to handle an array of different types and
thus the log entry will be blocked. As such we can't find these log
statements in Kibana at the moment. Changing to just a string will allow
it to be ingested properly.
parent 5234d51e
...@@ -20,7 +20,7 @@ module Elastic ...@@ -20,7 +20,7 @@ module Elastic
min = (max - items.size) + 1 min = (max - items.size) + 1
(min..max).zip(items).each_slice(1000) do |group| (min..max).zip(items).each_slice(1000) do |group|
logger.debug(message: 'track_items', count: group.count, items: group) logger.debug(message: 'track_items', count: group.count, tracked_items_encoded: group.to_json)
redis.zadd(REDIS_SET_KEY, group) redis.zadd(REDIS_SET_KEY, group)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment