Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
essai formalisation niveaux de debug
[modules/smesh.git]
/
src
/
Tools
/
blocFissure
/
gmu
/
geomsmesh.py
diff --git
a/src/Tools/blocFissure/gmu/geomsmesh.py
b/src/Tools/blocFissure/gmu/geomsmesh.py
index baa874ee7ce3fc59f63f73a7f4f811e257930814..aa8f02c939547605ad62d730a43cf4ec18472492 100644
(file)
--- a/
src/Tools/blocFissure/gmu/geomsmesh.py
+++ b/
src/Tools/blocFissure/gmu/geomsmesh.py
@@
-2,7
+2,7
@@
import logging
logging.info('start')
import logging
logging.info('start')
-from initLog import getLogLevel
+import initLog
import salome
salome.salome_init()
import salome
salome.salome_init()
@@
-15,11
+15,11
@@
smesh = smeshBuilder.New(salome.myStudy)
logging.debug("initialisation de geompy et smesh OK")
logging.debug("initialisation de geompy et smesh OK")
-def geomPublish
Debug(
aShape, aName):
- if
getLogLevel() <= 1
:
+def geomPublish
(level,
aShape, aName):
+ if
initLog.getLogLevel() <= level
:
geompy.addToStudy(aShape, aName)
geompy.addToStudy(aShape, aName)
-def geomPublish
DebugInFather(
aFather, aShape, aName):
- if
getLogLevel() <= 1
:
+def geomPublish
InFather(level,
aFather, aShape, aName):
+ if
initLog.getLogLevel() <= level
:
geompy.addToStudyInFather(aFather, aShape, aName)
\ No newline at end of file
geompy.addToStudyInFather(aFather, aShape, aName)
\ No newline at end of file