From 76d5dedb3b7b525cec019a1bb7d04ab5961973b1 Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Fri, 30 Nov 2018 14:29:34 +0800 Subject: [PATCH] Remove simple log handler at startup (#2000) The simple logger handler is not removed if we set the `log.to=file` in emqx.conf. This might be an issue of OTP logger: https://bugs.erlang.org/browse/ERL-788 I set the error_logger to silent as a workaround. --- priv/emqx.schema | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/priv/emqx.schema b/priv/emqx.schema index 3838db31e..1001ab5a8 100644 --- a/priv/emqx.schema +++ b/priv/emqx.schema @@ -426,12 +426,18 @@ end}. {datatype, file} ]}. -{mapping, "sasl", "sasl.sasl_error_logger", [ +{mapping, "log.sasl", "sasl.sasl_error_logger", [ {default, off}, {datatype, flag}, hidden ]}. +{mapping, "log.error_logger", "kernel.error_logger", [ + {default, silent}, + {datatype, {enum, [silent]}}, + hidden +]}. + {translation, "emqx.primary_log_level", fun(Conf) -> cuttlefish:conf_get("log.level", Conf) end}.