File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ defmodule Tesla.Middleware.Logger do
182
182
183
183
alias Tesla.Middleware.Logger.Formatter
184
184
185
- @ config Application . get_env ( :tesla , __MODULE__ , [ ] )
185
+ @ config Application . compile_env ( :tesla , __MODULE__ , [ ] )
186
+
186
187
@ format Formatter . compile ( @ config [ :format ] )
187
188
188
189
@ type log_level :: :info | :warn | :error
Original file line number Diff line number Diff line change @@ -80,9 +80,8 @@ if Code.ensure_loaded?(:telemetry) do
80
80
```
81
81
"""
82
82
83
- @ disable_legacy_event Application . get_env ( :tesla , Tesla.Middleware.Telemetry ,
84
- disable_legacy_event: false
85
- ) [ :disable_legacy_event ]
83
+ @ disable_legacy_event Application . compile_env ( :tesla , Tesla.Middleware.Telemetry ,
84
+ disable_legacy_event: false ) [ :disable_legacy_event ]
86
85
87
86
@ behaviour Tesla.Middleware
88
87
@@ -142,7 +141,7 @@ if Code.ensure_loaded?(:telemetry) do
142
141
end
143
142
144
143
if @ disable_legacy_event do
145
- defp emit_legacy_event ( duration , result ) do
144
+ defp emit_legacy_event ( _duration , _result ) do
146
145
:ok
147
146
end
148
147
else
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ defmodule Tesla.Mixfile do
2
2
use Mix.Project
3
3
4
4
@ source_url "https://github.com/teamon/tesla"
5
- @ version "1.6.1 "
5
+ @ version "1.7.0 "
6
6
7
7
def project do
8
8
[
9
9
app: :tesla ,
10
10
version: @ version ,
11
11
description: description ( ) ,
12
12
package: package ( ) ,
13
- elixir: "~> 1.7 " ,
13
+ elixir: "~> 1.10 " ,
14
14
elixirc_paths: elixirc_paths ( Mix . env ( ) ) ,
15
15
deps: deps ( ) ,
16
16
lockfile: lockfile ( System . get_env ( "LOCKFILE" ) ) ,
You can’t perform that action at this time.
0 commit comments