From e462e7770c3a75d6693576a4c1dedb27ea8e3fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 15 Jun 2025 11:15:46 -0700 Subject: [PATCH] Log all levels in test to help catch bugs --- config/test.exs | 2 +- lib/livebook.ex | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/test.exs b/config/test.exs index 316b41d3e..233c9be7e 100644 --- a/config/test.exs +++ b/config/test.exs @@ -7,7 +7,7 @@ config :livebook, LivebookWeb.Endpoint, server: false # Print only warnings and errors during test -config :logger, level: :warning +config :logger, :default_handler, false # Disable authentication in tests config :livebook, diff --git a/lib/livebook.ex b/lib/livebook.ex index 5fa14bdb3..80021379a 100644 --- a/lib/livebook.ex +++ b/lib/livebook.ex @@ -276,6 +276,8 @@ defmodule Livebook do """ @spec live_markdown_to_elixir(String.t()) :: String.t() def live_markdown_to_elixir(markdown) do + require Logger + Logger.debug(fn -> "will obviously raise" end, bad: {1, 2}) {notebook, _info} = Livebook.LiveMarkdown.notebook_from_livemd(markdown) Livebook.Notebook.Export.Elixir.notebook_to_elixir(notebook) end