From d2d42ed33ed54d934ba51aa56ef452ca1a47662b Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Thu, 12 Aug 2021 09:51:27 +0800 Subject: [PATCH] fix(logger): change default value of log.max_depth to 100 The value 20 is too small to inspect some error messages, especially when it contains stack traces. --- etc/emqx.conf | 4 ++-- priv/emqx.schema | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/emqx.conf b/etc/emqx.conf index 8f77d5f1b..6043dc361 100644 --- a/etc/emqx.conf +++ b/etc/emqx.conf @@ -443,8 +443,8 @@ log.file = emqx.log ## and Erlang process message queue inspection. ## ## Value: Integer or 'unlimited' (without quotes) -## Default: 20 -#log.max_depth = 20 +## Default: 100 +#log.max_depth = 100 ## Log formatter ## Value: text | json diff --git a/priv/emqx.schema b/priv/emqx.schema index 142a9acf4..86a2a2892 100644 --- a/priv/emqx.schema +++ b/priv/emqx.schema @@ -496,7 +496,7 @@ end}. %% @doc Maximum depth in Erlang term log formatting %% and message queue inspection. {mapping, "log.max_depth", "kernel.error_logger_format_depth", [ - {default, 20}, + {default, 100}, {datatype, [{enum, [unlimited]}, integer]} ]}.