Skip to content

Commit

Permalink
Quiet logging under test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumm committed Dec 23, 2022
1 parent f2b4f83 commit 27e837c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import Config

# We are stuck with this until we can make Absinthe.Phoenix.Channel logging
# configurable from the outside.
config :logger, :level, :warn

config :phoenix, :json_library, Jason
4 changes: 2 additions & 2 deletions test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ defmodule AbsintheClientTest.Schema do
end

defmodule AbsintheClientTest.UserSocket do
use Phoenix.Socket
use Phoenix.Socket, log: :debug

use Absinthe.Phoenix.Socket,
schema: AbsintheClientTest.Schema
Expand All @@ -187,7 +187,7 @@ defmodule AbsintheClientTest.UserSocket do
end

defmodule AbsintheClientTest.AuthSocket do
use Phoenix.Socket
use Phoenix.Socket, log: :debug

use Absinthe.Phoenix.Socket,
schema: AbsintheClientTest.Schema
Expand Down

0 comments on commit 27e837c

Please sign in to comment.