File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1009,7 +1009,7 @@ defmodule Logger do
1009
1009
compile_time_purge_matching? ( compile_level , compile_metadata ) ->
1010
1010
no_log ( data , quoted_metadata )
1011
1011
1012
- Application . fetch_env! ( :logger , :always_evaluate_messages ) ->
1012
+ Application . get_env ( :logger , :always_evaluate_messages , false ) ->
1013
1013
quote do
1014
1014
data = Logger . __evaluate_log__ ( unquote ( data ) )
1015
1015
metadata = unquote ( quoted_metadata )
@@ -1117,7 +1117,7 @@ defmodule Logger do
1117
1117
end
1118
1118
1119
1119
defp no_log ( data , metadata ) do
1120
- if Application . fetch_env! ( :logger , :always_evaluate_messages ) do
1120
+ if Application . get_env ( :logger , :always_evaluate_messages , false ) do
1121
1121
quote do
1122
1122
Logger . __evaluate_log__ ( unquote ( data ) )
1123
1123
unquote ( metadata )
You can’t perform that action at this time.
0 commit comments