Log all levels in test to help catch bugs

This commit is contained in:
José Valim 2025-06-15 11:15:46 -07:00
parent e04543495f
commit e462e7770c
2 changed files with 3 additions and 1 deletions

View file

@ -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,

View file

@ -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