Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion app/jobs/scheduled/categories_locale_detection_backfill.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def execute(args)
rescue FinalDestination::SSRFDetector::LookupFailedError
rescue => e
DiscourseAi::Translation::VerboseLogger.log(
"Failed to detect category #{category.id}'s locale: #{e.message}",
"Failed to detect category #{category.id}'s locale: #{e.message}\n\n#{e.backtrace[0..3].join("\n")}",
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/jobs/scheduled/posts_locale_detection_backfill.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def execute(args)
# do nothing, there are too many sporadic lookup failures
rescue => e
DiscourseAi::Translation::VerboseLogger.log(
"Failed to detect post #{post.id}'s locale: #{e.message}",
"Failed to detect post #{post.id}'s locale: #{e.message}\n\n#{e.backtrace[0..3].join("\n")}",
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/jobs/scheduled/topics_locale_detection_backfill.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def execute(args)
# do nothing, there are too many sporadic lookup failures
rescue => e
DiscourseAi::Translation::VerboseLogger.log(
"Failed to detect topic #{topic.id}'s locale: #{e.message}",
"Failed to detect topic #{topic.id}'s locale: #{e.message}\n\n#{e.backtrace[0..3].join("\n")}",
)
end
end
Expand Down
Loading