From 0d9de69cf3755ad8beb14d8f333569cbf6d27fbd Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 29 Nov 2023 15:58:54 +0100 Subject: [PATCH] spns #38104: packagespy verbosity level should be set by default to INFO and not DEBUG --- products/packagespy.pyconf | 1 + .../packagespy-74152cd-verbosity-level.patch | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 products/patches/packagespy-74152cd-verbosity-level.patch diff --git a/products/packagespy.pyconf b/products/packagespy.pyconf index 9c87ac3..5a74498 100644 --- a/products/packagespy.pyconf +++ b/products/packagespy.pyconf @@ -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 index 0000000..600f7aa --- /dev/null +++ b/products/patches/packagespy-74152cd-verbosity-level.patch @@ -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 ..., 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()) -- 2.39.2