Skip to content

Commit

Permalink
Improve logging on application crash in release
Browse files Browse the repository at this point in the history
  • Loading branch information
tspenov committed Oct 14, 2024
1 parent 95743e8 commit 2578c3c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/sanbase/application/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ defmodule Sanbase.Application do
config: %{metadata: [:file, :line]}
})

Supervisor.start_link(children, opts)
case Supervisor.start_link(children, opts) do
{:ok, _} = ok ->
ok

{:error, reason} ->
Logger.error(Exception.format_exit(reason))
{:error, reason}
end
end

def init(container_type) do
Expand Down

0 comments on commit 2578c3c

Please sign in to comment.