From b52b494b0ca7922cda332ace51bb970fc3d5eadc Mon Sep 17 00:00:00 2001
From: Goutte <antoine.goutenoir@gmail.com>
Date: Tue, 17 Jul 2018 16:48:18 +0200
Subject: [PATCH] Add even more logs.

---
 CHANGELOG.md | 10 +++++++---
 config.yml   | 10 +++++++---
 web/run.py   |  3 ++-
 3 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index e9e1602..c7c2415 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -28,12 +28,16 @@ et prendre aussi
 
 ## Future ?
 
-- [ ] Layer : Auroral Emissions
 - [ ] Set the log level to _error_ in production (see `web/run.py`)
-- [ ] Add a README to the download tarball (no tarball anymore)
-- [ ] Rework the icons of Rosetta and Juno
+- [ ] Rework the images of Rosetta and Juno
 - [ ] Optimize data aggregation (numpy vectorization?)
 - [ ] IE compat, if you can (I can't)
+- [ ] Add a README to the download tarball (no tarball anymore)
+- [ ] Bump D3JS to v5
+- [ ] Enable p67
+- [ ] Layer : Auroral Emissions
+- [ ] Layer : Inputs (disabled)
+- [ ] Solve the ticks' month issue
 
 
 ## 1.6
diff --git a/config.yml b/config.yml
index e1117f8..9d39ca0 100644
--- a/config.yml
+++ b/config.yml
@@ -69,7 +69,6 @@ layers:
             file:  "ICME_WP4_V10.json"
             start: "ICME_START_TIME"
             stop:  "MO_END_TIME"
-            format: "%Y-%m-%dT%H:%MZ"
             l1:
                 venus:
                     constraints: [ { SC_INSITU: ["VEX"] } ]
@@ -79,7 +78,6 @@ layers:
             url:   "https://www.helcats-fp7.eu/catalogues/data/HCME_WP4_V6.json"
             file:  "HCME_WP4_V6.json"
             start: "TARGET_ARRIVAL"
-            format: "%Y-%m-%dT%H:%MZ"
             l1:
                 mars:
                     constraints: [ { TARGET_NAME: ["MARS", "MAVEN", "MSC"] } ]
@@ -87,7 +85,6 @@ layers:
             url:   "https://cdaw.gsfc.nasa.gov/CME_list/UNIVERSAL/text_ver/univ_all.txt"
             file:  "univ_all.json"
             start: "DATETIME"
-            format: "%Y-%m-%dT%H:%M:%S"
             l1:
                 earth: ~
 
@@ -140,8 +137,10 @@ targets:
               - slug: 'tao_mercury_swrt'
           sa:
               - slug: 'tao_mercury_sw'
+#              - slug: 'tao_mercury_swrt'
           sb:
               - slug: 'tao_mercury_sw'
+#              - slug: 'tao_mercury_swrt'
       locked: false
       default: true
     - type: 'planet'
@@ -159,8 +158,10 @@ targets:
               - slug: 'tao_venus_swrt'
           sa:
               - slug: 'tao_venus_sw'
+#              - slug: 'tao_venus_swrt'
           sb:
               - slug: 'tao_venus_sw'
+#              - slug: 'tao_venus_swrt'
       locked: false
       default: true
     - type: 'planet'
@@ -256,10 +257,13 @@ targets:
       models:
           l1:
               - slug: 'tao_sat_sw'
+#              - slug: 'tao_sat_swrt'
           sa:
               - slug: 'tao_sat_sw'
+#              - slug: 'tao_sat_swrt'
           sb:
               - slug: 'tao_sat_sw'
+#              - slug: 'tao_sat_swrt'
       locked: false
       default: true
     - type: 'planet'
diff --git a/web/run.py b/web/run.py
index 5b5d728..8b00505 100755
--- a/web/run.py
+++ b/web/run.py
@@ -242,7 +242,7 @@ tpl_global_vars = {
 # HELPERS #####################################################################
 
 def abort(code, message):
-    log.error(message)
+    log.error("Abort: " + message)
     abort_flask(code, message)
 
 
@@ -468,6 +468,7 @@ def retrieve_amda_netcdf(orbiter, what, started_at, stopped_at):
         finally:
             retries += 1
     if not remote_gzip_files:
+        log.error("Failed to retrieve data from AMDA.")
         log.error("Failed to fetch gzip files list for %s at '%s' : %s" %
                    (orbiter, url, errors))
         abort(400, "Failed to fetch gzip files list for %s at '%s' : %s" %
--
libgit2 0.21.2