mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-10 06:54:28 +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
|
server: false
|
||||||
|
|
||||||
# Print only warnings and errors during test
|
# Print only warnings and errors during test
|
||||||
config :logger, level: :warning
|
config :logger, :default_handler, false
|
||||||
|
|
||||||
# Disable authentication in tests
|
# Disable authentication in tests
|
||||||
config :livebook,
|
config :livebook,
|
||||||
|
|
|
@ -276,6 +276,8 @@ defmodule Livebook do
|
||||||
"""
|
"""
|
||||||
@spec live_markdown_to_elixir(String.t()) :: String.t()
|
@spec live_markdown_to_elixir(String.t()) :: String.t()
|
||||||
def live_markdown_to_elixir(markdown) do
|
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)
|
{notebook, _info} = Livebook.LiveMarkdown.notebook_from_livemd(markdown)
|
||||||
Livebook.Notebook.Export.Elixir.notebook_to_elixir(notebook)
|
Livebook.Notebook.Export.Elixir.notebook_to_elixir(notebook)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue