mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-10 06:01:44 +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 table_name(), do: :persistent_term.get(__MODULE__)
|
||||||
|
|
||||||
defp load_or_create_table() do
|
defp load_or_create_table() do
|
||||||
config_file_path()
|
path = config_file_path()
|
||||||
|
|
||||||
|
path
|
||||||
|> String.to_charlist()
|
|> String.to_charlist()
|
||||||
|> :ets.file2tab()
|
|> :ets.file2tab()
|
||||||
|> case do
|
|> case do
|
||||||
{:ok, tab} ->
|
{:ok, tab} ->
|
||||||
|
Logger.info("Reading storage from #{path}")
|
||||||
tab
|
tab
|
||||||
|
|
||||||
{:error, reason} ->
|
{:error, reason} ->
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue