Skip to content

Commit

Permalink
Log timing of binary downloading from vendor endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
GJFR committed Dec 6, 2024
1 parent 73d2656 commit e6f3fa6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bci/browser/binary/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import logging
import os
import time
from abc import abstractmethod
from typing import Optional

Expand Down Expand Up @@ -80,8 +81,10 @@ def fetch_binary(self):
return
# Try to download binary
elif self.is_available_online():
start = time.time()
self.download_binary()
logger.info(f'Binary for {self.state.index} downloaded')
elapsed_time = time.time() - start
logger.info(f'Binary for {self.state.index} downloaded in {elapsed_time:.2f}s')
BinaryCache.store_binary_files(self.get_potential_bin_path(), self.state)
else:
raise BuildNotAvailableError(self.browser_name, self.state)
Expand Down

0 comments on commit e6f3fa6

Please sign in to comment.