DEV: Include more information when reporting search indexing failures.

This commit is contained in:
Guo Xiang Tan 2020-08-21 11:02:00 +08:00
parent aae9e6e5fd
commit d12d8fb7fd
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ class SearchIndexer
# instead in the post processor
Discourse.warn_exception(
e,
message: "Unexpected error while indexing #{table} for search"
message: "Unexpected error while indexing #{table} for search",
env: { id: id }
)
end
end