]> granicus.if.org Git - ejabberd/commit
Get stacktrace out of lager context
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 1 Sep 2018 16:37:26 +0000 (19:37 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 1 Sep 2018 16:37:26 +0000 (19:37 +0300)
commit88d0b71d58cba45cdbf051f80e2c7c1940f96c75
treedc2856b1b053c29e8cbf9a3b98dbdcf7091bcb36
parentb416527e4f3495dc5e66c0f44365d9bbfab710c5
Get stacktrace out of lager context

Calling erlang:get_stacktrace() inside lager functions produces
stacktraces of the logging function itself, not the function which has failed.
src/ejabberd_acme.erl
src/ejabberd_hooks.erl
src/ejabberd_local.erl
src/ejabberd_router.erl
src/ejabberd_router_sql.erl
src/ejabberd_s2s.erl
src/ejabberd_sm.erl
src/gen_iq_handler.erl
src/mod_http_api.erl
src/mod_muc_room.erl
src/mod_roster.erl