Closed imricardoramos closed 3 months ago
@imricardoramos can you please add a few tests that will cover newly added lines? See: https://coveralls.io/builds/68924173/source?filename=lib%2Flogger_json%2Fformatter%2Fredactor_encoder.ex#L35
They can be added here: https://github.com/Nebo15/logger_json/blob/master/test/logger_json/formatter/redactor_encoder_test.exs
Done
Right now dates and times are encoded with the struct encoder which makes the logs be very verbose about dates (I'm using Grafana Loki to view logs and it makes it hard to parse visually):
I propose to keep those as-is and let them be encoded by their native Jason encoding. They don't present any sensitive data and therefore they don't need to be checked for redacted fields.