mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-09 13:44:53 +08:00
Log when reading from storage
This commit is contained in:
parent
40c5044a60
commit
d282ea28c7
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue