Skip to content

Commit 4c1ef54

Browse files
authored
Merge pull request #348 from splitio/dw-update-push.splitworker
dw - updated logs and comments in push.splitworker
2 parents 5dadb01 + f1aafb2 commit 4c1ef54

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

splitio/push/splitworker.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Split changes processing worker."""
1+
"""Feature Flag changes processing worker."""
22
import logging
33
import threading
44

@@ -7,18 +7,18 @@
77

88

99
class SplitWorker(object):
10-
"""Split Worker for processing updates."""
10+
"""Feature Flag Worker for processing updates."""
1111

1212
_centinel = object()
1313

1414
def __init__(self, synchronize_split, split_queue):
1515
"""
1616
Class constructor.
1717
18-
:param synchronize_split: handler to perform split synchronization on incoming event
18+
:param synchronize_split: handler to perform feature flag synchronization on incoming event
1919
:type synchronize_split: callable
2020
21-
:param split_queue: queue with split updates notifications
21+
:param split_queue: queue with feature flag updates notifications
2222
:type split_queue: queue
2323
"""
2424
self._split_queue = split_queue
@@ -38,11 +38,11 @@ def _run(self):
3838
break
3939
if event == self._centinel:
4040
continue
41-
_LOGGER.debug('Processing split_update %d', event.change_number)
41+
_LOGGER.debug('Processing feature flag update %d', event.change_number)
4242
try:
4343
self._handler(event.change_number)
4444
except Exception: # pylint: disable=broad-except
45-
_LOGGER.error('Exception raised in split synchronization')
45+
_LOGGER.error('Exception raised in feature flag synchronization')
4646
_LOGGER.debug('Exception information: ', exc_info=True)
4747

4848
def start(self):
@@ -52,13 +52,13 @@ def start(self):
5252
return
5353
self._running = True
5454

55-
_LOGGER.debug('Starting Split Worker')
55+
_LOGGER.debug('Starting Feature Flag Worker')
5656
self._worker = threading.Thread(target=self._run, name='PushSplitWorker', daemon=True)
5757
self._worker.start()
5858

5959
def stop(self):
6060
"""Stop worker."""
61-
_LOGGER.debug('Stopping Split Worker')
61+
_LOGGER.debug('Stopping Feature Flag Worker')
6262
if not self.is_running():
6363
_LOGGER.debug('Worker is not running')
6464
return

0 commit comments

Comments
 (0)