samba-gpupdate: Implement enhanced logging
authorDavid Mulder <dmulder@suse.com>
Wed, 2 Mar 2022 09:23:51 +0000 (02:23 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 24 Mar 2022 23:40:47 +0000 (23:40 +0000)
commitc788ed7b8b4e1f8331562715d68af48ad9985383
tree1d06a7c4ff8af830c584daa4c330407c15e6187c
parentc4f9c372405bea8a7d9c6b39e04cebefa3322a19
samba-gpupdate: Implement enhanced logging

This ports the enhanced logging capabilities from
AltLinux gpupdate. It generates log messages such
as:
2022-03-02 11:28:54.872|[E40104]| Failed to set interfaces for zone | {'val': 'work'}
2022-03-02 11:28:55.017|[E40104]| Failed to set interfaces for zone | {'val': 'home'}

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Mar 24 23:40:47 UTC 2022 on sn-devel-184
17 files changed:
python/samba/gp/util/logging.py [new file with mode: 0644]
python/samba/gp_cert_auto_enroll_ext.py
python/samba/gp_chromium_ext.py
python/samba/gp_ext_loader.py
python/samba/gp_firefox_ext.py
python/samba/gp_firewalld_ext.py
python/samba/gp_gnome_settings_ext.py
python/samba/gp_sec_ext.py
python/samba/gp_smb_conf_ext.py
python/samba/gp_sudoers_ext.py
python/samba/gpclass.py
python/samba/tests/gpo.py
python/samba/tests/gpo_member.py
python/samba/vgp_files_ext.py
python/samba/vgp_sudoers_ext.py
python/samba/vgp_symlink_ext.py
source4/scripting/bin/samba-gpupdate