Skip to content

Commit

Permalink
more timing debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Trygve Aspenes committed Oct 10, 2024
1 parent 149abce commit 5de97d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mapgen/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,14 @@

def start_processing(netcdf_path, query_string, netloc, scheme, q):
try:
start = time.time()
response_code, response, content_type = get_quicklook(netcdf_path, query_string, netloc, scheme, products=None)
end = time.time()
logging.debug(f"qet_quicklook completed in: {end - start:f}seconds")
start = end
q.put((response_code, response, content_type))
end = time.time()
logging.debug(f"Put results in queue in: {end - start:f}seconds")
except KeyboardInterrupt:
pass

Expand Down

0 comments on commit 5de97d7

Please sign in to comment.