Skip to content

Commit 6d695eb

Browse files
authored
Merge pull request #556 from fatkodima/thread-name
Give background thread a name
2 parents 4e4bd3d + 5e78355 commit 6d695eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/coverband/integrations/background.rb

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def self.start
3030
logger.debug("Coverband: Starting background reporting") if Coverband.configuration.verbose
3131
sleep_seconds = Coverband.configuration.background_reporting_sleep_seconds.to_i
3232
@thread = Thread.new {
33+
Thread.current.name = "Coverband Background Reporter"
34+
3335
loop do
3436
if Coverband.configuration.reporting_wiggle
3537
sleep_seconds = Coverband.configuration.background_reporting_sleep_seconds.to_i + rand(Coverband.configuration.reporting_wiggle.to_i)

0 commit comments

Comments
 (0)