]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #38104: packagespy verbosity level should be set by default to INFO and not...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 29 Nov 2023 14:58:54 +0000 (15:58 +0100)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 22 Apr 2024 09:24:05 +0000 (11:24 +0200)
products/packagespy.pyconf
products/patches/packagespy-74152cd-verbosity-level.patch [new file with mode: 0644]

index 9c87ac381d350575ac610dabc38945fab92ba676..5a744984eed12fa222d24efba1a62e64fd149c6e 100644 (file)
@@ -22,4 +22,5 @@ default :
 version_74152cd :
 {
     archive_info : {archive_name : "packagespy-74152cd.tar.gz"}
+    patches : ["packagespy-74152cd-verbosity-level.patch"]
 }
diff --git a/products/patches/packagespy-74152cd-verbosity-level.patch b/products/patches/packagespy-74152cd-verbosity-level.patch
new file mode 100644 (file)
index 0000000..600f7aa
--- /dev/null
@@ -0,0 +1,37 @@
+--- packagespy_ref/packagespy/xyzpy/loggingXyz.py      2023-02-07 16:18:10.000000000 +0100
++++ packagespy_dev/packagespy/xyzpy/loggingXyz.py      2023-11-29 15:19:00.132612280 +0100
+@@ -855,7 +855,7 @@
+   logger.addHandler(handler)
+   # as RootLogger is level WARNING
+   # my logger is not notset but low, handlers needs setlevel greater
+-  logger.setLevel(LOGI.DEBUG)
++  logger.setLevel(LOGI.INFO)
+   # import src/debug as DBG
+   # tmp = (logger.getEffectiveLevel(), LOGI.NOTSET, logger.level, logger.parent.level)
+   # DBG.write("logger levels tmp, True)
+@@ -888,7 +888,7 @@
+   if level is not None:
+     logger.setLevel(level)
+   else:
+-    logger.setLevel(LOGI.DEBUG)
++    logger.setLevel(LOGI.INFO)
+ def _getDefaultLogger():
+@@ -989,14 +989,14 @@
+   print("\n**** DEFAULT logger")
+   logdef = getDefaultLogger()
+   # use of setColorLevelname <color>...<reset>, so do not use %(levelname)-8s
+-  initLoggerAsDefault(logdef, '%(levelname)s :: %(message)s', level=LOGI.DEBUG)
++  initLoggerAsDefault(logdef, '%(levelname)s :: %(message)s', level=LOGI.INFO)
+   testLogger_1(logdef)
+   print("\n**** DEFAULT logger NoReturn")
+   logdef.testNoReturn()
+   print("\n**** UNITTEST logger")
+   loguni = getUnittestLogger()
+-  initLoggerAsUnittest(loguni, '%(asctime)s :: %(levelname)-8s :: %(message)s', level=LOGI.DEBUG)
++  initLoggerAsUnittest(loguni, '%(asctime)s :: %(levelname)-8s :: %(message)s', level=LOGI.INFO)
+   testLogger_1(loguni) # is silent
+   # log("loguni.getLogs():\n%s" % loguni.getLogs())
+   print("loguni.streamUnittest:\n%s" % loguni.getLogs())