What is the best way to log a field in Rails which is a complex hash map?

The following discussion from !119146 (merged) should be addressed:

  • @vtak started a discussion: (+1 comment)

    Added this to get more information when these events occur.

    I've done a fetch with default {} to be on the safer side. I've converted it to a string because the structure is a hashmap with some lists which don't necessarily all have the same type. And as per https://docs.gitlab.com/ee/development/logging.html#implicit-schema-for-json-logging , we should log lists which are of the same type.

    Don't know if there is a better way to do it?

Assignee Loading
Time tracking Loading