Skip to content

Commit

Permalink
Debugging for search
Browse files Browse the repository at this point in the history
  • Loading branch information
cguess committed Apr 1, 2024
1 parent 01c6d68 commit d6df236
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/image_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ def raw_sql(dhash)
sql = "SELECT archive_item_id, levenshtein FROM ( #{inner_query} LIMIT 20 ) t ORDER BY levenshtein;"
sql = sql.split("\n").map(&:strip).join(" ")

if Rails.env.production? && Figaro.env.AUTH_BASE_HOST == "staging.factcheckinsights.org"
Rails.logger.debug(sql)
end
Rails.logger.debug(sql)

sql
end
Expand Down

0 comments on commit d6df236

Please sign in to comment.