Преглед изворни кода

Optimize log configuration

turtled пре 6 година
родитељ
комит
6dd09ef681
1 измењених фајлова са 2 додато и 6 уклоњено
  1. 2 6
      priv/emqx.schema

+ 2 - 6
priv/emqx.schema

@@ -400,7 +400,7 @@ end}.
   {datatype, {enum, [debug, info, notice, warning, error, critical, alert, emergency, all]}}
 ]}.
 
-{mapping, "log.primary_level", "emqx.primary_log_level", [
+{mapping, "log.primary_level", "kernel.primary_log_level", [
    {default, error},
    {datatype, {enum, [debug, info, notice, warning, error, critical, alert, emergency, all]}}
 ]}.
@@ -420,7 +420,7 @@ end}.
   {datatype, file}
 ]}.
 
-{mapping, "log.chars_limit", "log.chars_limit", [
+{mapping, "log.chars_limit", "kernel.logger", [
   {default, 1024},
   {datatype, integer}
 ]}.
@@ -462,10 +462,6 @@ end}.
   hidden
 ]}.
 
-{translation, "emqx.primary_log_level", fun(Conf) ->
-    cuttlefish:conf_get("log.level", Conf)
-end}.
-
 {translation, "kernel.logger", fun(Conf) ->
     LogTo = cuttlefish:conf_get("log.to", Conf),
     LogLevel = cuttlefish:conf_get("log.level", Conf),