]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
general crack dialog: working on log...
authorPaul RASCLE <paul.rascle@edf.fr>
Fri, 15 Apr 2016 15:50:49 +0000 (17:50 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Fri, 15 Apr 2016 15:50:49 +0000 (17:50 +0200)
src/Tools/blocFissure/gmu/construitFissureGenerale.py
src/Tools/blocFissure/gmu/initLog.py

index ddffac3898297bc0d03e1ac71a788dce3cc2703b..f75c2742b5482481cc21d9b80e6b8394b6b9c49a 100644 (file)
@@ -12,6 +12,7 @@ from salome.smesh import smeshBuilder
 import SMESH
 import math
 import bisect
+import traceback
 
 # from extractionOrientee import extractionOrientee
 # from extractionOrienteeMulti import extractionOrienteeMulti
@@ -51,6 +52,7 @@ from construitMaillagePipe import construitMaillagePipe
 from mailleAretesEtJonction import mailleAretesEtJonction
 from mailleFacesFissure import mailleFacesFissure
 from mailleFacesPeau import mailleFacesPeau
+from fissError import fissError
 
 # -----------------------------------------------------------------------------
 # --- procédure complète fissure générale
index c9c78b30c42266c06f561435391ee04ccc488eaf..bc427de1d3c0aedc04556887cc825e1c8c63deb2 100644 (file)
@@ -12,6 +12,7 @@ loglevel = warning
 
 def setDebug(logfile=None):
   global loglevel
+  logging.shutdown()
   if logfile:
     logging.basicConfig(filename=logfile,
                         format='%(relativeCreated)d %(funcName)s[%(lineno)d] %(message)s',
@@ -24,6 +25,7 @@ def setDebug(logfile=None):
 
 def setVerbose(logfile=None):
   global loglevel
+  logging.shutdown()
   if logfile:
     logging.basicConfig(filename=logfile,
                         format='%(relativeCreated)d %(funcName)s[%(lineno)d] %(message)s',
@@ -36,6 +38,7 @@ def setVerbose(logfile=None):
 
 def setRelease(logfile=None):
   global loglevel
+  logging.shutdown()
   if logfile:
     logging.basicConfig(filename=logfile,
                         format='%(funcName)s[%(lineno)d] %(message)s',
@@ -48,6 +51,7 @@ def setRelease(logfile=None):
   
 def setUnitTests(logfile=None):
   global loglevel
+  logging.shutdown()
   if logfile:
     logging.basicConfig(filename=logfile,
                         format='%(funcName)s[%(lineno)d] %(message)s',
@@ -60,6 +64,7 @@ def setUnitTests(logfile=None):
   
 def setPerfTests(logfile=None):
   global loglevel
+  logging.shutdown()
   if logfile:
     logging.basicConfig(filename=logfile,
                         format='%(relativeCreated)d %(funcName)s[%(lineno)d] %(message)s',