Skip to content

Commit a2c00ed

Browse files
committed
fix(app): round the log message wait time using bankers rounding
Instead of 10.026906251907349 it would show 10 or 11 as there is no need to show that precision level
1 parent 56dcd78 commit a2c00ed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rootfs/api/models/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,8 @@ def verify_application_health(self, **kwargs):
638638

639639
# Endpoint did not report healthy in time
640640
if ('response' in locals() and response.status_code == 404) or failed:
641-
delta = time.time() - start
641+
# bankers rounding
642+
delta = round(time.time() - start)
642643
self.log(
643644
'Router was not ready to serve traffic to process type {} in time, waited {} seconds'.format(app_type, delta), # noqa
644645
level=logging.WARNING

0 commit comments

Comments
 (0)