25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-15 15:19:20 +02:00

Do not forget to re-define the crash.log path

This commit is contained in:
Evgeniy Khramtsov 2013-07-15 11:49:28 +10:00
parent 8482641b4e
commit 986f4d1a7f

View File

@ -67,11 +67,13 @@ start() ->
ConsoleLog = get_log_path(),
Dir = filename:dirname(ConsoleLog),
ErrorLog = filename:join([Dir, "error.log"]),
CrashLog = filename:join([Dir, "crash.log"]),
application:set_env(
lager, handlers,
[{lager_console_backend, info},
{lager_file_backend, [{file, ConsoleLog}, {level, info}, {count, 1}]},
{lager_file_backend, [{file, ErrorLog}, {level, error}, {count, 1}]}]),
application:set_env(lager, crash_log, CrashLog),
ejabberd:start_app(lager),
ok.