aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/error_logger.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-05-09 17:22:43 +0200
committerLukas Larsson <[email protected]>2018-05-21 17:43:53 +0200
commitbfe8a57bb9356415e6438f0deb410b03a7c602d1 (patch)
tree2d3ace36d9a0d5858f8c861ff5499e4dc1685431 /lib/kernel/src/error_logger.erl
parent92d93f85e88235f3fa757d300628d382d09c6226 (diff)
downloadotp-bfe8a57bb9356415e6438f0deb410b03a7c602d1.tar.gz
otp-bfe8a57bb9356415e6438f0deb410b03a7c602d1.tar.bz2
otp-bfe8a57bb9356415e6438f0deb410b03a7c602d1.zip
Remove logger env vars for format_depth, max_size and utc
These are replaced by new config handling and must not be used any more.
Diffstat (limited to 'lib/kernel/src/error_logger.erl')
-rw-r--r--lib/kernel/src/error_logger.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/kernel/src/error_logger.erl b/lib/kernel/src/error_logger.erl
index 47d0ca5ea3..196c70d05f 100644
--- a/lib/kernel/src/error_logger.erl
+++ b/lib/kernel/src/error_logger.erl
@@ -540,7 +540,6 @@ tty(false) ->
delete_report_handler(error_logger_tty_h).
%%%-----------------------------------------------------------------
-
-spec limit_term(term()) -> term().
limit_term(Term) ->
@@ -552,4 +551,9 @@ limit_term(Term) ->
-spec get_format_depth() -> 'unlimited' | pos_integer().
get_format_depth() ->
- logger:get_format_depth().
+ case application:get_env(kernel, error_logger_format_depth) of
+ {ok, Depth} when is_integer(Depth) ->
+ max(10, Depth);
+ undefined ->
+ unlimited
+ end.