Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Improvements #18

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: use project logger module
heywhy committed Feb 27, 2022
commit ff9531ba58be97928a0026ff8449e484fe0b2022
6 changes: 2 additions & 4 deletions lib/elasticlunr/storage/disk.ex
Original file line number Diff line number Diff line change
@@ -10,9 +10,7 @@ defmodule Elasticlunr.Storage.Disk do
"""
use Elasticlunr.Storage

alias Elasticlunr.{DB, Deserializer, Index, Serializer}

require Logger
alias Elasticlunr.{DB, Deserializer, Index, Logger, Serializer}

@data_file_ext "data"
@index_file_ext "index"
@@ -44,7 +42,7 @@ defmodule Elasticlunr.Storage.Disk do
Index.update_documents_size(%{index | db: db})
else
false ->
Logger.info("[elasticlunr] unable to data for index #{index.name}")
Logger.error("unable to load data for index #{index.name}")
index
end
end