Skip to content

Commit

Permalink
Merge pull request #556 from fatkodima/thread-name
Browse files Browse the repository at this point in the history
Give background thread a name
  • Loading branch information
danmayer authored Oct 11, 2024
2 parents 4e4bd3d + 5e78355 commit 6d695eb
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 6d695eb

Please sign in to comment.