• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Nebo15 / logger_json
100%

Build:
DEFAULT BRANCH: master
Repo Added 09 Apr 2017 03:06PM UTC
Files 17
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 0.2.0
  • 0.3.0
  • 0.4.0
  • 0.5.0
  • 1.1.0
  • 1.2.0
  • 1.3.0
  • 2.0.1
  • 3.0.1
  • 3.0.2
  • 3.0.3
  • 3.1.0
  • 3.1.1
  • 3.1.2
  • 3.2.0
  • 3.3.0
  • 4.0.0
  • 4.1.0
  • 4.2.0
  • 5.0.0
  • 5.1.0
  • 5.1.1
  • 5.1.2
  • al/datadog-error-tracker
  • fix/format-affected-user-with-integer-values
  • fix/render-file-as-string
  • master
  • patch-1
  • refs/pull/146/merge
  • use-json-elixir-1-18

11 Feb 2026 07:24PM UTC coverage: 100.0%. Remained the same
1a1f630127924b5d67aeae1f45518d24e7824846

push

github

web-flow
fix(datadog): Non-map values for error key (#166)

Passing an `error` key is a really easy footgun:

```elixir
Logger.error("Something bad happened", error: "{:error, :something_bad}")
```

Currently, the formatter crashes because it expects `error` to be a map.
This PR fixes the issue by assuming the caller was not trying to define
the error map, and instead nests the value _inside_ the error map:

```elixir
%{
  error: %{
    kind: "error",
    message: "Something bad happened",
    error: "{:error, :something_bad}"
  }
}
```

4 of 4 new or added lines in 1 file covered. (100.0%)

371 of 371 relevant lines covered (100.0%)

2528.0 hits per line

Relevant lines Covered
Build:
Build:
371 RELEVANT LINES 371 COVERED LINES
2528.0 HITS PER LINE
Source Files on master
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1a1f6301... master fix(datadog): Non-map values for error key (#166) Passing an `error` key is a really easy footgun: ```elixir Logger.error("Something bad happened", error: "{:error, :something_bad}") ``` Currently, the formatter crashes because it expects `erro... push 11 Feb 2026 07:25PM UTC web-flow github
100.0
495b9178... master fix(datadog): Non-map values for error key Pull #166 11 Feb 2026 06:48PM UTC giddie github
100.0
1524672b... master Bump version push 14 Jul 2025 03:31PM UTC AndrewDryga github
100.0
88a149b0... master fix(google-cloud): `format_affected_user/1` with non-binary values (#161) ### 🐞 Problem The `google_cloud` formatter crashes when it receives a crash log where the `user context` contains values that are not binaries (e.g., integers). This happ... push 08 Jul 2025 04:41PM UTC web-flow github
100.0
84e12293... fix/format-affected-user-with-integer-values pr suggestion Pull #161 07 Jul 2025 08:20PM UTC raulpe7eira github
100.0
80f14f0f... fix/format-affected-user-with-integer-values test: update test name Pull #161 07 Jul 2025 06:19PM UTC raulpe7eira github
100.0
6e776806... master Add indentation to the code snippet for docs (#160) Currently the code snippet is not rendered correctly because of the indentation: https://hexdocs.pm/logger_json/7.0.3/LoggerJSON.Formatter.html#c:new/1 <img width="888" alt="Screenshot 2025-05... push 24 May 2025 10:01PM UTC web-flow github
100.0
ad1030df... patch-1 Add indentation to the code snippet for docs Pull #160 24 May 2025 09:41PM UTC web-flow github
100.0
a0436795... master Bump version push 13 May 2025 07:04PM UTC AndrewDryga github
100.0
6d524a55... master Format `metadata[:file]` as string in `Formatters.Basic` (#159) Erlang passes `metadata[:file]` as a charlist, which is passed as is by `Basic` formatter. In this PR I changed `Basic` formatter to output the file as a string. Resolves #158. push 11 May 2025 07:06PM UTC web-flow github
100.0
See All Builds (338)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc