Univention Bugzilla – Bug 56343
deprecation warning logged as error (using univention.uldap.access instance is deprecated. Use univention.admin.uldap.access instead.)
Last modified: 2023-08-08 09:28:36 CEST
The message --- using univention.uldap.access instance is deprecated. Use univention.admin.uldap.access instead. --- is logged at ERROR level. This makes a lot of logfiles completely unreadable! wc -l /var/log/univention/management-console-module-diagnostic.log 69979 grep -c "using univention.uldap.access instance" management-console-module-diagnostic.log 61212 Lower the log level of that message to something lower than the default loglevel.
Why not instead fix the cause that the wrong instance is given to UDM?!
This should be the patch for it: diff --git ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/912_ucsschool_invalid_group_names.py ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/912_ucsschool_invalid_group_names.py index bf0959792..e8b4edb69 100755 --- ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/912_ucsschool_invalid_group_names.py +++ ucs-school-umc-diagnostic/umc/python/diagnostic/plugins/912_ucsschool_invalid_group_names.py @@ -40,7 +40,7 @@ from ucsschool.lib.models.share import ClassShare, WorkGroupShare from ucsschool.lib.schoolldap import SchoolSearchBase from univention.lib.i18n import Translation from univention.management.console.modules.diagnostic import Warning -from univention.uldap import getAdminConnection +from univention.admin.uldap import getAdminConnection re_name_with_multiple_whitespaces = re.compile(r"\s{2,}") All other diagnostic scripts seem to be ok.
I cloned the bug to fix the import → bug #56413. The log level of the deprecation warning is too high nonetheless.