Skip to content

Commit

Permalink
Fix log message of reindexing to show the result
Browse files Browse the repository at this point in the history
  • Loading branch information
Jillian Tullo committed Feb 2, 2018
1 parent d2db9c2 commit 20236c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/extensions/ar_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def self.truncate

def self.reindex
_log.info("Reindexing table #{reindex_table_name}")
connection.reindex_table(reindex_table_name)
_log.info("Reindexing table #{reindex_table_name}")
result = connection.reindex_table(reindex_table_name)
_log.info("Completed Reindexing of table #{reindex_table_name} with result #{result.result_status}")
end

def self.reindex_table_name
Expand Down

0 comments on commit 20236c8

Please sign in to comment.