From cb518d6e6c3d7100f9157ecc242730f6195c0930 Mon Sep 17 00:00:00 2001
From: Romain Broucquart <romain.broucquart@synchrotron-soleil.fr>
Date: Fri, 22 Apr 2022 18:59:33 +0200
Subject: [PATCH] Minor fixes

* Uncapitalize attribute
* Log the extraction as an info
---
 core/ArchiveExtractor.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/core/ArchiveExtractor.py b/core/ArchiveExtractor.py
index 4b59129..2f862db 100755
--- a/core/ArchiveExtractor.py
+++ b/core/ArchiveExtractor.py
@@ -177,6 +177,9 @@ class ArchiveExtractor:
         if type(dateStop) is str:
             dateStop = self.dateparse(dateStop)
 
+        # Uncapitalize attribute
+        attribute = attribute.lower()
+
         # Check that the attribute is in the database
         self.logger.debug("Check that %s is archived."%attribute)
         if not self.extractor.IsArchived(attribute):
@@ -212,7 +215,7 @@ class ArchiveExtractor:
             # 2 retries on DevFailed
             for i in range(3):
                 # Make retrieval request
-                self.logger.debug("Perform ExtractBetweenDates (%s, %s, %s)"%(
+                self.logger.info("Perform ExtractBetweenDates (%s, %s, %s)"%(
                     attribute,
                     cdates[i_d].strftime(DBDFMT),
                     cdates[i_d+1].strftime(DBDFMT))
-- 
GitLab