ソースを参照

FIX corrections diverses

olivier.massot 7 年 前
コミット
40a065b120
2 ファイル変更9 行追加8 行削除
  1. 7 7
      logging.yaml
  2. 2 1
      qgis_sync_wincan.py

+ 7 - 7
logging.yaml

@@ -33,7 +33,7 @@ handlers:
         toaddrs: [olivier.massot@bas-rhin.fr, jacky.klein@bas-rhin.fr]
         subject: Rapport d'execution de %name%
         capacity: 100000000
-        
+
 loggers:
     test:
         level: DEBUG
@@ -45,25 +45,25 @@ loggers:
         propagate: no
     wincan2ctrl:
         level: DEBUG
-        handlers: [console, file, mail]
+        handlers: [console, file]
         propagate: no
     qgis_sync_compactage:
         level: DEBUG
-        handlers: [console, file, mail]
+        handlers: [console, file]
         propagate: no
     qgis_sync_etancheite:
         level: DEBUG
-        handlers: [console, file, mail]
+        handlers: [console, file]
         propagate: no
     qgis_sync_wincan:
         level: DEBUG
-        handlers: [console, file, mail]
+        handlers: [console, file]
     qgis_sync_video:
         level: DEBUG
-        handlers: [console, file, mail]
+        handlers: [console, file]
     qgis_sync_videores:
         level: DEBUG
-        handlers: [console, file, mail]
+        handlers: [console, file]
         propagate: no
     ctrl2analytique:
         level: DEBUG

+ 2 - 1
qgis_sync_wincan.py

@@ -63,7 +63,7 @@ if not a_importer:
 for chantier_dir in a_importer:
     # Ici, les noms de chantier sont de la forme 000000, 000000-0, ou 000000-S0
     dir_name = chantier_dir.name
-    logger.info("Traitement du répertoire: {}".format(chantier_dir.name))
+    logger.info("# Traitement du répertoire: {}".format(chantier_dir.name))
 
     # check the existence of the chantier in WincanDb, and check if the chantier has been treated in Controles (SI_Spare1 = 1)
     if not wincan_db.exists(Sql.format("""SELECT SI_T.SI_AutoNumber
@@ -97,6 +97,7 @@ for chantier_dir in a_importer:
         point.x, point.y = sh_point.shape.points[0]
         points.append(point)
 
+    del sf, sh_points
 
     logger.info("> Contrôle des données")
     shp_regards_name = set([point.number for point in points])