Skip to content

Commit ca1b7d7

Browse files
lukebaumanncopybara-github
authored andcommitted
Improve logging precision for sleep duration.
Format the logged sleep time to two decimal places for better readability. FUTURE_COPYBARA_INTEGRATE_REVIEW=#104 from AI-Hypercomputer:release 49f59b7 PiperOrigin-RevId: 800745631
1 parent 0311764 commit ca1b7d7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pathwaysutils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
from pathwaysutils import _initialize
1616

1717
initialize = _initialize.initialize
18+
is_pathways_backend_used = _initialize.is_pathways_backend_used
19+
1820
del _initialize
1921

2022
# When changing this, also update the CHANGELOG.md.

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)