mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 12:04:20 +08:00
Log all levels in test to help catch bugs
This commit is contained in:
parent
e04543495f
commit
e462e7770c
2 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue