Commit 91c3d52df8b479901b02d141b2f1e77de9caaee8
1 parent
5c1c54ec
Exists in
master
and in
2 other branches
Add more logs.
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
requirements.txt
web/run.py
... | ... | @@ -331,8 +331,8 @@ def get_active_targets(): |
331 | 331 | |
332 | 332 | def retrieve_amda_netcdf(orbiter, what, started_at, stopped_at): |
333 | 333 | """ |
334 | - Handles remote querying Myriam's API, downloading, extracting and caching | |
335 | - the netCDF files. | |
334 | + Handles remote querying AMDA's API for URLs, and then downloading, | |
335 | + extracting and caching the netCDF files. | |
336 | 336 | :param orbiter: key of the source in the YAML config |
337 | 337 | :param what: either 'model' or 'orbit', a key in the config of the source |
338 | 338 | :param started_at: |
... | ... | @@ -371,6 +371,8 @@ def retrieve_amda_netcdf(orbiter, what, started_at, stopped_at): |
371 | 371 | finally: |
372 | 372 | retries += 1 |
373 | 373 | if not remote_gzip_files: |
374 | + log.error("Failed to fetch gzip files list for %s at '%s' : %s" % | |
375 | + (orbiter, url, errors)) | |
374 | 376 | abort(400, "Failed to fetch gzip files list for %s at '%s' : %s" % |
375 | 377 | (orbiter, url, errors)) |
376 | 378 | else: | ... | ... |