mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-08-23 06:16:31 +00:00
fix(core): Added tracking for map & character event handling errors
This commit is contained in:
@@ -180,6 +180,8 @@ defmodule WandererApp.Character.TrackerPool do
|
||||
[Tracker Pool] update_online => exception: #{Exception.message(e)}
|
||||
#{Exception.format_stacktrace(__STACKTRACE__)}
|
||||
""")
|
||||
|
||||
ErrorTracker.report(e, __STACKTRACE__)
|
||||
end
|
||||
|
||||
{:noreply, state}
|
||||
|
||||
@@ -310,7 +310,17 @@ defmodule WandererApp.Map.MapPool do
|
||||
end
|
||||
|
||||
def handle_info(event, state) do
|
||||
Server.Impl.handle_event(event)
|
||||
try do
|
||||
Server.Impl.handle_event(event)
|
||||
rescue
|
||||
e ->
|
||||
Logger.error("""
|
||||
[Map Pool] handle_info => exception: #{Exception.message(e)}
|
||||
#{Exception.format_stacktrace(__STACKTRACE__)}
|
||||
""")
|
||||
|
||||
ErrorTracker.report(e, __STACKTRACE__)
|
||||
end
|
||||
|
||||
{:noreply, state}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user