Skip to content

Commit

Permalink
Merge pull request #1347 from justinstoller/maint-improve-sync-logging
Browse files Browse the repository at this point in the history
(maint) Emit more debug output when mod sync fails
  • Loading branch information
justinstoller committed Jun 27, 2023
2 parents d7a07fc + dd8c4e5 commit c9d99bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/r10k/content_synchronizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,13 @@ def self.sync_thread(mods_queue, logger, updated_modules)
begin
while mods = mods_queue.pop(true) do
mods.each do |mod|
updated = mod.sync
updated_modules << mod.name if updated
begin
updated = mod.sync
updated_modules << mod.name if updated
rescue Exception => e
logger.error _("Module %{mod_name} failed to synchronize due to %{message}") % {mod_name: mod.name, message: e.message}
raise e
end
end
end
rescue ThreadError => e
Expand Down

0 comments on commit c9d99bf

Please sign in to comment.