mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Do not forget to re-define the crash.log path
This commit is contained in:
parent
8482641b4e
commit
986f4d1a7f
@ -67,11 +67,13 @@ start() ->
|
|||||||
ConsoleLog = get_log_path(),
|
ConsoleLog = get_log_path(),
|
||||||
Dir = filename:dirname(ConsoleLog),
|
Dir = filename:dirname(ConsoleLog),
|
||||||
ErrorLog = filename:join([Dir, "error.log"]),
|
ErrorLog = filename:join([Dir, "error.log"]),
|
||||||
|
CrashLog = filename:join([Dir, "crash.log"]),
|
||||||
application:set_env(
|
application:set_env(
|
||||||
lager, handlers,
|
lager, handlers,
|
||||||
[{lager_console_backend, info},
|
[{lager_console_backend, info},
|
||||||
{lager_file_backend, [{file, ConsoleLog}, {level, info}, {count, 1}]},
|
{lager_file_backend, [{file, ConsoleLog}, {level, info}, {count, 1}]},
|
||||||
{lager_file_backend, [{file, ErrorLog}, {level, error}, {count, 1}]}]),
|
{lager_file_backend, [{file, ErrorLog}, {level, error}, {count, 1}]}]),
|
||||||
|
application:set_env(lager, crash_log, CrashLog),
|
||||||
ejabberd:start_app(lager),
|
ejabberd:start_app(lager),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user