[SCM] Samba Shared Repository - branch master updated

Andreas Schneider asn at samba.org
Tue Jan 30 07:19:01 UTC 2024


The branch, master has been updated
       via  145194071b1 python:gp: Fix logging with gp
      from  52a68c37b56 ldb: change the version to 2.10.0 for Samba 4.21

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 145194071b10c4c1857f28fe79c57fd63ffab889
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Jan 29 17:46:30 2024 +0100

    python:gp: Fix logging with gp
    
    This allows enable INFO level logging with: `samba-gpupdate -d3`
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15558
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Joseph Sutton <josephsutton at catalyst.net.nz>
    Reviewed-by: Andrew Bartlett <abartlet at samba.org>
    
    Autobuild-User(master): Andreas Schneider <asn at cryptomilk.org>
    Autobuild-Date(master): Tue Jan 30 07:18:05 UTC 2024 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 python/samba/gp/util/logging.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/python/samba/gp/util/logging.py b/python/samba/gp/util/logging.py
index 9e70891b62c..da085d8d7e6 100644
--- a/python/samba/gp/util/logging.py
+++ b/python/samba/gp/util/logging.py
@@ -23,9 +23,10 @@ import gettext
 import random
 import sys
 
-logger = logging.getLogger()
+logger = logging.getLogger("gp")
+
+
 def logger_init(name, log_level):
-    logger = logging.getLogger(name)
     logger.addHandler(logging.StreamHandler(sys.stdout))
     logger.setLevel(logging.CRITICAL)
     if log_level == 1:


-- 
Samba Shared Repository



More information about the samba-cvs mailing list