فهرست منبع

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.
Shawn 7 سال پیش
والد
کامیت
76d5dedb3b
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      priv/emqx.schema

+ 7 - 1
priv/emqx.schema

@@ -426,12 +426,18 @@ end}.
   {datatype, file}
   {datatype, file}
 ]}.
 ]}.
 
 
-{mapping, "sasl", "sasl.sasl_error_logger", [
+{mapping, "log.sasl", "sasl.sasl_error_logger", [
   {default, off},
   {default, off},
   {datatype, flag},
   {datatype, flag},
   hidden
   hidden
 ]}.
 ]}.
 
 
+{mapping, "log.error_logger", "kernel.error_logger", [
+  {default, silent},
+  {datatype, {enum, [silent]}},
+  hidden
+]}.
+
 {translation, "emqx.primary_log_level", fun(Conf) ->
 {translation, "emqx.primary_log_level", fun(Conf) ->
     cuttlefish:conf_get("log.level", Conf)
     cuttlefish:conf_get("log.level", Conf)
 end}.
 end}.