Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging: Fix crash when Epoch-based timestamps are used with JSON #3281

Merged
merged 1 commit into from
Aug 10, 2021

Commits on Aug 10, 2021

  1. Logging: Fix crash when Epoch-based timestamps are used with JSON

    The code was passing a number (the timestamp) to
    unicode:characters_to_binary/1 which expects an iolist to convert to
    UTF-8.
    
    We now verify if we have a number before calling that function. If this
    is a number (integer or float), we keep it as is because JSON supports
    that type.
    dumbbell committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    6c8cf4c View commit details
    Browse the repository at this point in the history