Skip to content

Commit

Permalink
adds logging and fixes a env var
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Nov 1, 2023
1 parent ceefadd commit f710b90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion env.development
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SOLR_HOST="http://solr:8983"
SOLR_PASSWORD=SolrRocks
SOLR_USERNAME=solr
SOLR_USER=solr
SOLR_CONFIGURATION="authority_browse"
SOLR_COLLECTION="authority_browse"
MARIADB_ROOT_PASSWORD=password
Expand Down
11 changes: 9 additions & 2 deletions lib/authority_browse/names.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,20 @@ def reset_db(loc_file_getter = lambda { fetch_skos_file })

milemarker.log_final_line

AuthorityBrowse::DB::Names.set_names_indexes!
DBMutator::Names.remove_deprecated_when_undeprecated_match_text_exists
S.logger.info "Start: set the indexes"
S.logger.measure_info("set the indexes") do
AuthorityBrowse::DB::Names.set_names_indexes!
end
S.logger.info "Start: remove deprecated when undeprecated match text exists"
S.logger.measure_info("removed deprecated terms with undprecated match text") do
DBMutator::Names.remove_deprecated_when_undeprecated_match_text_exists
end
end

# Fetches terms from Biblio, updates counts in :names, and adds loc ids to
# :names_from_biblio
def update
S.logger.info "Start Term fetcher"
TermFetcher.new.run
S.logger.info "Start: zeroing out counts"
S.logger.measure_info("Zeroed out counts") do
Expand Down

0 comments on commit f710b90

Please sign in to comment.