mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
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@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jan 30 07:18:05 UTC 2024 on atb-devel-224
This commit is contained in:
parent
52a68c37b5
commit
145194071b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user