Skip to content

Commit c415405

Browse files
committed
Update logger config and fix warning
1 parent bb74410 commit c415405

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

config/config.exs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ if config_env() == :test do
1313
test_mode: true,
1414
traces_sample_rate: 1.0
1515

16-
config :logger, backends: []
16+
config :logger, :default_handler, false
17+
18+
config :sentry, :logger, [
19+
{:handler, :file_log, :logger_std_h,
20+
%{
21+
config: %{file: ~c"log/tests.log"},
22+
formatter: Logger.Formatter.new()
23+
}}
24+
]
1725

1826
config :opentelemetry, span_processor: {Sentry.OpenTelemetry.SpanProcessor, []}
1927

0 commit comments

Comments
 (0)