Skip to content
Snippets Groups Projects
Commit 9384e736 authored by pascal.mouquet_ird.fr's avatar pascal.mouquet_ird.fr
Browse files

Merge branch 'update_logging' into 'master'

updated log infos in download_eodag

See merge request espace-dev/sen2chain!27
parents dcc35994 0b4254fa
No related branches found
No related tags found
No related merge requests found
Pipeline #2566 passed
......@@ -276,6 +276,8 @@ class S2cEodag:
p.properties["storageStatus"]
)
)
# logger.info(p.properties)
# clouds = self.products[:]
# for p in clouds:
......@@ -296,7 +298,8 @@ class S2cEodag:
# self.products.remove(p)
# else:
# logger.info("{} - remote {} - local l2a ABSENT".format(p.properties["title"], p.properties["storageStatus"]))
logger.info("Search returned {} new product(s) to download".format(len(self.products))) ####### rajouter ici "- dont xx ABSENT - dont xx ONLINE / xx STAGING"
logger.info("Search returned {} products online, of which {} new product(s) to download".format(len(filtered), len(self.products))) ####### rajouter ici "- dont xx ABSENT - dont xx ONLINE / xx STAGING"
def download(
self,
......@@ -451,10 +454,11 @@ def S2cEodag_download_uniq(
)
logger.info("Moving up files and deleting old folder")
except:
logger.info("Error: Issue while moving up extracted file")
pass
set_permissions(Path(downloaded_path))
except:
logger.info("Error: ONLINE product but cannot be downloaded, retry later")
logger.info("Error: Something went wrong with download process, retry later")
elif product.properties["storageStatus"] == "OFFLINE":
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment