Skip to content

Commit 1659848

Browse files
lukebaumanncopybara-github
authored andcommitted
Improve logging precision for sleep duration.
Format the logged sleep time to two decimal places for better readability. PiperOrigin-RevId: 800897897
1 parent 0311764 commit 1659848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pathwaysutils/elastic/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def wait_for_slices(
708708
)
709709

710710
if time_to_sleep > 0:
711-
_logger.info("Sleeping for %s seconds.", time_to_sleep)
711+
_logger.info("Sleeping for %.2f seconds.", time_to_sleep)
712712

713713
time.sleep(time_to_sleep)
714714

0 commit comments

Comments
 (0)