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,7 +14,7 @@ python-slugify==1.2.4
14 14
15 15
16 ## SECOND LEVEL DEPS 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 appdirs==1.4.3 19 appdirs==1.4.3
20 click==6.7 20 click==6.7
@@ -331,8 +331,8 @@ def get_active_targets(): @@ -331,8 +331,8 @@ def get_active_targets():
331 331
332 def retrieve_amda_netcdf(orbiter, what, started_at, stopped_at): 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 :param orbiter: key of the source in the YAML config 336 :param orbiter: key of the source in the YAML config
337 :param what: either 'model' or 'orbit', a key in the config of the source 337 :param what: either 'model' or 'orbit', a key in the config of the source
338 :param started_at: 338 :param started_at:
@@ -371,6 +371,8 @@ def retrieve_amda_netcdf(orbiter, what, started_at, stopped_at): @@ -371,6 +371,8 @@ def retrieve_amda_netcdf(orbiter, what, started_at, stopped_at):
371 finally: 371 finally:
372 retries += 1 372 retries += 1
373 if not remote_gzip_files: 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 abort(400, "Failed to fetch gzip files list for %s at '%s' : %s" % 376 abort(400, "Failed to fetch gzip files list for %s at '%s' : %s" %
375 (orbiter, url, errors)) 377 (orbiter, url, errors))
376 else: 378 else: