Skip to content

Commit 1b5c23a

Browse files
authored
Elixir 1.10 support (#33)
* Adds Elixir 1.10.0 to the Travis CI matrix * Ignores Erlang logger metadata keys that can't be encoded to JSON Elixir 1.10 includes a better integration with the Erlang logger, this means that the logger level, logger metadata, as well as all log messages are now shared between Erlang and Elixir. Some of the Erlang logger metadata doesn't have a valid representation in JSON. This is a problem because when logger_json tries to encode them it will fail This commit updates logger_json to ignore the Erlang logger metadata keys that can't be encoded to JSON.
1 parent 65279d6 commit 1b5c23a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ matrix:
1414
elixir: 1.7.3
1515
- otp_release: 22.1
1616
elixir: 1.9.2
17+
- otp_release: 22.2
18+
elixir: 1.10.1
1719
env:
1820
global:
1921
- MIX_ENV=test

lib/logger_json.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ defmodule LoggerJSON do
5959
"""
6060
@behaviour :gen_event
6161

62-
@ignored_metadata_keys ~w[ansi_color initial_call crash_reason]a
62+
@ignored_metadata_keys ~w[ansi_color initial_call crash_reason pid gl mfa report_cb]a
6363

6464
defstruct metadata: nil,
6565
level: nil,

0 commit comments

Comments
 (0)