Skip to content

Commit b4a4fb4

Browse files
fix(hooks_processor): explicitly add jason as production dependency (#410)
## 📝 Description `jason` was not packaged into the release so json logger is crashing in prod env and printing just a log message ## ✅ Checklist - [x] I have tested this change - [ ] This change requires documentation update
1 parent 6b7ec74 commit b4a4fb4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hooks_processor/lib/hooks_processor/hooks/processing/workers_supervisor.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ defmodule HooksProcessor.Hooks.Processing.WorkersSupervisor do
4444
end
4545

4646
defp process_response(resp = {:ok, pid}, id, provider) do
47-
LT.info(pid, "Hook #{id} - #{provider} worker started")
47+
LT.debug(pid, "Hook #{id} - #{provider} worker started")
4848
resp
4949
end
5050

5151
defp process_response({:error, {:already_started, pid}}, id, provider) do
52-
LT.info(pid, "Hook #{id} - #{provider} worker already started")
52+
LT.debug(pid, "Hook #{id} - #{provider} worker already started")
5353
{:ok, pid}
5454
end
5555

hooks_processor/mix.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ defmodule HooksProcessor.MixProject do
3939
{:postgrex, ">= 0.0.0"},
4040
{:uuid, "~> 1.1"},
4141
{:logger_json, "~> 7.0"},
42+
{:jason, "~> 1.4"},
4243
{:junit_formatter, "~> 3.1", only: [:test]},
4344
# head because support for JSON is not yet released
4445
{:sentry, github: "getsentry/sentry-elixir", ref: "f375551f32f35674f9baab470d0e571466b07055"},

0 commit comments

Comments
 (0)