Skip to content

Commit

Permalink
Give background thread a name
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima committed Oct 11, 2024
1 parent 91ed9e2 commit 5e78355
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/coverband/integrations/background.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def self.start
logger.debug("Coverband: Starting background reporting") if Coverband.configuration.verbose
sleep_seconds = Coverband.configuration.background_reporting_sleep_seconds.to_i
@thread = Thread.new {
Thread.current.name = "Coverband Background Reporter"

loop do
if Coverband.configuration.reporting_wiggle
sleep_seconds = Coverband.configuration.background_reporting_sleep_seconds.to_i + rand(Coverband.configuration.reporting_wiggle.to_i)
Expand Down

0 comments on commit 5e78355

Please sign in to comment.