Skip to content

Commit

Permalink
Add logger to internal router
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Nov 1, 2024
1 parent 487963e commit 77def35
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/uplink/installations/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ defmodule Uplink.Installations.Router do

plug :dispatch

plug Plug.Logger

post "/:instellar_installation_id/events" do
case conn.body_params do
%{"event" => %{"name" => "delete"}} ->
Expand Down
2 changes: 2 additions & 0 deletions lib/uplink/internal.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ defmodule Uplink.Internal do
Install
}

plug Plug.Logger

plug :match
plug :dispatch

Expand Down
1 change: 0 additions & 1 deletion lib/uplink/packages/distribution.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
defmodule Uplink.Packages.Distribution do
use Plug.Builder
plug Plug.Logger

alias Uplink.{
Internal,
Expand Down
2 changes: 1 addition & 1 deletion test/uplink/metrics/pipeline_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ defmodule Uplink.Metrics.PipelineTest do
} do
ref = Broadway.test_message(Uplink.Metrics.Pipeline, message)

assert_receive {:ack, ^ref, [%{data: data}], []}
assert_receive {:ack, ^ref, [%{data: data}], []}, 10_000

assert %{load: load} = data

Expand Down

0 comments on commit 77def35

Please sign in to comment.