From: Jean-Philippe ARGAUD Date: Tue, 3 Apr 2012 21:10:55 +0000 (+0200) Subject: Restriction of printed messages to logging X-Git-Tag: V6_5_0~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7c48be0997755d7e230805736728415aade4a961;p=modules%2Fadao.git Restriction of printed messages to logging --- diff --git a/bin/AdaoCatalogGenerator.py b/bin/AdaoCatalogGenerator.py index 941d1dd..be2782a 100644 --- a/bin/AdaoCatalogGenerator.py +++ b/bin/AdaoCatalogGenerator.py @@ -25,7 +25,7 @@ import sys import string import StringIO -logging.basicConfig(level=logging.DEBUG) +logging.basicConfig(level=logging.INFO) #----------- Templates Part ---------------# begin_catalog_file = """ diff --git a/bin/AdaoYacsSchemaCreator.py b/bin/AdaoYacsSchemaCreator.py index c971400..0f57140 100644 --- a/bin/AdaoYacsSchemaCreator.py +++ b/bin/AdaoYacsSchemaCreator.py @@ -23,7 +23,7 @@ import sys import os import traceback import logging -logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s %(message)s') +logging.basicConfig(level=logging.INFO, format='%(levelname)-8s %(message)s') print "-- Starting AdaoYacsSchemaCreator --" diff --git a/resources/ADAOSchemaCatalog.xml b/resources/ADAOSchemaCatalog.xml index 13630ae..c6ed43d 100644 --- a/resources/ADAOSchemaCatalog.xml +++ b/resources/ADAOSchemaCatalog.xml @@ -58,10 +58,10 @@ @@ -206,7 +206,7 @@ print "Matrix is", matrix @@ -242,7 +242,7 @@ print "Vector is", vector @@ -297,7 +297,7 @@ result = None @@ -380,7 +380,7 @@ print "Entering in Observation" @@ -404,7 +404,7 @@ output["errorMessage"] = "" diff --git a/src/daEficas/generator_adao.py b/src/daEficas/generator_adao.py index 9673b80..b826729 100644 --- a/src/daEficas/generator_adao.py +++ b/src/daEficas/generator_adao.py @@ -47,7 +47,7 @@ class AdaoGenerator(PythonGenerator): self.logger = logging.getLogger('ADAO EFICAS GENERATOR') self.logger.setLevel(logging.INFO) ch = logging.StreamHandler() - ch.setLevel(logging.DEBUG) + ch.setLevel(logging.INFO) formatter = logging.Formatter("%(name)s - %(levelname)s - %(message)s") ch.setFormatter(formatter) self.logger.addHandler(ch) diff --git a/src/daSalome/daYacsIntegration/daStudy.py b/src/daSalome/daYacsIntegration/daStudy.py index a3407a4..6dce516 100644 --- a/src/daSalome/daYacsIntegration/daStudy.py +++ b/src/daSalome/daYacsIntegration/daStudy.py @@ -69,7 +69,7 @@ class daStudy: self.ADD.setAlgorithm(choice=self.algorithm) if self.algorithm_dict != None: - print self.algorithm_dict + logging.debug("ADD.setAlgorithm : "+str(self.algorithm_dict)) self.ADD.setAlgorithmParameters(asDico=self.algorithm_dict) def getAssimilationStudy(self):