Remove the duplicated InfoHandler
This commit is contained in:
parent
99ed0e46b6
commit
aaf19787af
|
@ -1,5 +1,5 @@
|
||||||
%%-*- mode: erlang -*-
|
%%-*- mode: erlang -*-
|
||||||
%% EMQ X config mapping
|
%% EMQ X R2.3 config mapping
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% Cluster
|
%% Cluster
|
||||||
|
@ -417,14 +417,6 @@ end}.
|
||||||
{date, "$D0"},
|
{date, "$D0"},
|
||||||
{count, cuttlefish:conf_get("log.info.count", Conf)}]}]
|
{count, cuttlefish:conf_get("log.info.count", Conf)}]}]
|
||||||
end,
|
end,
|
||||||
InfoHandler = case cuttlefish:conf_get("log.info.file", Conf, undefined) of
|
|
||||||
undefined -> [];
|
|
||||||
InfoFilename -> [{lager_file_backend, [{file, InfoFilename},
|
|
||||||
{level, info},
|
|
||||||
{size, 10485760},
|
|
||||||
{date, "$D0"},
|
|
||||||
{count, 5}]}]
|
|
||||||
end,
|
|
||||||
|
|
||||||
ConsoleLogLevel = cuttlefish:conf_get("log.console.level", Conf),
|
ConsoleLogLevel = cuttlefish:conf_get("log.console.level", Conf),
|
||||||
ConsoleLogFile = cuttlefish:conf_get("log.console.file", Conf),
|
ConsoleLogFile = cuttlefish:conf_get("log.console.file", Conf),
|
||||||
|
|
Loading…
Reference in New Issue