mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-21 02:25:56 +08:00
Log when reading from storage
This commit is contained in:
parent
40c5044a60
commit
d282ea28c7
|
@ -141,11 +141,14 @@ defmodule Livebook.Storage.Ets do
|
|||
defp table_name(), do: :persistent_term.get(__MODULE__)
|
||||
|
||||
defp load_or_create_table() do
|
||||
config_file_path()
|
||||
path = config_file_path()
|
||||
|
||||
path
|
||||
|> String.to_charlist()
|
||||
|> :ets.file2tab()
|
||||
|> case do
|
||||
{:ok, tab} ->
|
||||
Logger.info("Reading storage from #{path}")
|
||||
tab
|
||||
|
||||
{:error, reason} ->
|
||||
|
|
Loading…
Reference in a new issue