Commit 91c3d52df8b479901b02d141b2f1e77de9caaee8

Authored by Goutte
1 parent 5c1c54ec

Add more logs.

Showing 2 changed files with 5 additions and 3 deletions   Show diff stats
requirements.txt
... ... @@ -14,7 +14,7 @@ python-slugify==1.2.4
14 14  
15 15  
16 16 ## SECOND LEVEL DEPS
17   -# (We could probably comment them out, but hey)
  17 +# (comment them out if you have compatibility issues)
18 18  
19 19 appdirs==1.4.3
20 20 click==6.7
... ...
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:
... ...