From 7fd18ae8b1ffffdb02816645ec7147e9b70711df Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Fri, 15 Apr 2016 17:50:49 +0200 Subject: [PATCH] general crack dialog: working on log... --- src/Tools/blocFissure/gmu/construitFissureGenerale.py | 2 ++ src/Tools/blocFissure/gmu/initLog.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/Tools/blocFissure/gmu/construitFissureGenerale.py b/src/Tools/blocFissure/gmu/construitFissureGenerale.py index ddffac389..f75c2742b 100644 --- a/src/Tools/blocFissure/gmu/construitFissureGenerale.py +++ b/src/Tools/blocFissure/gmu/construitFissureGenerale.py @@ -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 diff --git a/src/Tools/blocFissure/gmu/initLog.py b/src/Tools/blocFissure/gmu/initLog.py index c9c78b30c..bc427de1d 100644 --- a/src/Tools/blocFissure/gmu/initLog.py +++ b/src/Tools/blocFissure/gmu/initLog.py @@ -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', -- 2.39.2