Skip to content

Commit 26911be

Browse files
authored
Merge pull request #913 from helgi/rounding
fix(app): round the log message wait time using bankers rounding
2 parents 56dcd78 + a2c00ed commit 26911be

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)