Skip to content

Commit 6315c6f

Browse files
authored
FFM-9737 Only log SDKCODE1003 when wait_for_initialzation has been called (#81)
* FFM-9737 Only log wait_for_init code if wait_for_init is called
1 parent 9fef98d commit 6315c6f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

featureflags/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """Enver Bisevac"""
44
__email__ = "enver.bisevac@harness.io"
5-
__version__ = '1.2.2'
5+
__version__ = '1.2.3'

featureflags/analytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
VARIATION_VALUE_ATTRIBUTE = 'variationValue'
3434
TARGET_ATTRIBUTE = 'target'
3535
SDK_VERSION_ATTRIBUTE = 'SDK_VERSION'
36-
SDK_VERSION = '1.0.0'
36+
SDK_VERSION = '1.2.3'
3737
SDK_TYPE_ATTRIBUTE = 'SDK_TYPE'
3838
SDK_TYPE = 'server'
3939
SDK_LANGUAGE_ATTRIBUTE = 'SDK_LANGUAGE'

featureflags/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def run(self):
127127
self._initialized.set()
128128

129129
def wait_for_initialization(self):
130+
sdk_codes.info_sdk_init_waiting()
130131
self._initialized.wait()
131132

132133
def is_initialized(self):

featureflags/polling.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .api.default.get_feature_config import sync as retrieve_flags
99
from .config import Config
1010
from .sdk_logging_codes import info_poll_started, info_polling_stopped, \
11-
info_sdk_init_ok, info_sdk_init_waiting
11+
info_sdk_init_ok
1212
from .util import log
1313

1414

@@ -41,7 +41,6 @@ def run(self):
4141
self.__running = True
4242
# Get initial flags and groups
4343
try:
44-
info_sdk_init_waiting()
4544
log.info("Fetching initial target segments and flags")
4645
self.retrieve_flags_and_segments()
4746
log.info("Initial target segments and flags fetched. "

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.2.2
2+
current_version = 1.2.3
33
commit = True
44
tag = True
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@
5757
test_suite="tests",
5858
tests_require=test_requirements,
5959
url="https://github.com/harness/ff-python-server-sdk",
60-
version='1.2.2',
60+
version='1.2.3',
6161
zip_safe=False,
6262
)

0 commit comments

Comments
 (0)