Skip to content

Commit a9e8a8f

Browse files
author
Matias Melograno
committed
fixed logs format
1 parent 4abe8d0 commit a9e8a8f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

splitio/sync/segment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,17 @@ def synchronize_segment(self, segment_name, till=None):
143143
successful_sync, remaining_attempts, change_number = self._attempt_segment_sync(segment_name, fetch_options, till)
144144
attempts = _ON_DEMAND_FETCH_BACKOFF_MAX_RETRIES - remaining_attempts
145145
if successful_sync: # succedeed sync
146-
_LOGGER.debug('Refresh completed in %s attempts.', attempts)
146+
_LOGGER.debug('Refresh completed in %d attempts.', attempts)
147147
return
148148
with_cdn_bypass = FetchOptions(True, change_number) # Set flag for bypassing CDN
149149
without_cdn_successful_sync, remaining_attempts, change_number = self._attempt_segment_sync(segment_name, with_cdn_bypass, till)
150150
without_cdn_attempts = _ON_DEMAND_FETCH_BACKOFF_MAX_RETRIES - remaining_attempts
151151
if without_cdn_successful_sync:
152-
_LOGGER.debug('Refresh completed bypassing the CDN in %s attempts.',
152+
_LOGGER.debug('Refresh completed bypassing the CDN in %d attempts.',
153153
without_cdn_attempts)
154154
return
155155
else:
156-
_LOGGER.debug('No changes fetched after %s attempts with CDN bypassed.',
156+
_LOGGER.debug('No changes fetched after %d attempts with CDN bypassed.',
157157
without_cdn_attempts)
158158

159159
def synchronize_segments(self):

splitio/sync/split.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@ def synchronize_splits(self, till=None):
116116
till)
117117
attempts = _ON_DEMAND_FETCH_BACKOFF_MAX_RETRIES - remaining_attempts
118118
if successful_sync: # succedeed sync
119-
_LOGGER.debug('Refresh completed in %s attempts.', attempts)
119+
_LOGGER.debug('Refresh completed in %d attempts.', attempts)
120120
return
121121
with_cdn_bypass = FetchOptions(True, change_number) # Set flag for bypassing CDN
122122
without_cdn_successful_sync, remaining_attempts, change_number = self._attempt_split_sync(with_cdn_bypass, till)
123123
without_cdn_attempts = _ON_DEMAND_FETCH_BACKOFF_MAX_RETRIES - remaining_attempts
124124
if without_cdn_successful_sync:
125-
_LOGGER.debug('Refresh completed bypassing the CDN in %s attempts.',
125+
_LOGGER.debug('Refresh completed bypassing the CDN in %d attempts.',
126126
without_cdn_attempts)
127127
return
128128
else:
129-
_LOGGER.debug('No changes fetched after %s attempts with CDN bypassed.',
129+
_LOGGER.debug('No changes fetched after %d attempts with CDN bypassed.',
130130
without_cdn_attempts)
131131

132132
def kill_split(self, split_name, default_treatment, change_number):

0 commit comments

Comments
 (0)