     children = [worker(WeirdFunctionNamesGenServer, [], child_opts)]
     {:ok, sup} = Supervisor.start_link(children, strategy: :simple_one_for_one)
 
-    log = capture_log(:info, fn ->
-      {:ok, pid} = Supervisor.start_child(sup, [])
-      catch_exit(GenServer.call(pid, :error))
-      [] = Supervisor.which_children(sup)
-    end)
+    log =
+      capture_log(:info, fn ->
+        {:ok, pid} = Supervisor.start_child(sup, [])
+        catch_exit(GenServer.call(pid, :error))
+        [] = Supervisor.which_children(sup)
+      end)
 
     assert log =~ ~s(Start Call: Logger.TranslatorTest.WeirdFunctionNamesGenServer."start link"/?)
   after

    :ok = :gen_event.add_handler(pid, MyGenEvent, :ok)

    assert capture_log(:info, fn ->
      :gen_event.call(pid, MyGenEvent, :error)
    end) =~ """
    [error] GenEvent handler Logger.TranslatorTest.MyGenEvent installed in #{inspect pid} terminating
    ** (RuntimeError) oops
    """
  end

  test "translates :gen_event crashes on debug" do

    {:ok, pid} = GenServer.start(MyGenServer, :ok)

    assert capture_log(:info, fn ->
             catch_exit(GenServer.call(pid, :error))
           end) =~ """
           [error] GenServer #{inspect(pid)} terminating
           ** (RuntimeError) oops
           """
  end

  test "translates GenServer crashes with custom inspect options" do
    {:ok, pid} = GenServer.start(MyGenServer, List.duplicate(:ok, 1000))
    Application.put_env(:logger, :translator_inspect_opts, limit: 3)

    assert capture_log(:debug, fn ->
             catch_exit(GenServer.call(pid, :error))
           end) =~ """
           [:ok, :ok, :ok, ...]
           """
  after
    Application.put_env(:logger, :translator_inspect_opts, [])
  end
