Nebo15 / logger_json

JSON logger formatter with support for Google Cloud, DataDog and other for Elixir.
https://nebo15.github.io/logger_json/
MIT License
242 stars 94 forks source link

fix: check if Decimal is loaded in encoder #135

Closed davidjulien closed 2 months ago

davidjulien commented 2 months ago

If Decimal is not included in the main app depending on LoggerJSON, the following line in LoggerJSON.Formatter.RedactorEncoder is not included:

    def encode(%Decimal{} = decimal, _redactors), do: decimal
coveralls commented 2 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 8ff1b1a764f8c8f26a116200e2c97e297e2cfb4e on davidjulien:check-if-decimal-is-compiled into 13710322008c5f7102480d6f9eba650ebbb5ef9c on Nebo15:master.

AndrewDryga commented 2 months ago

Good catch, thank you ❤️.