Univention Bugzilla – Bug 43096
The S4-Connector doesn't log UDM module debug messages
Last modified: 2019-11-06 14:40:52 CET
Created attachment 8275 [details] make_s4_connector_log_udm_debug_messages.diff The S4-Connector doesn't log UDM module debug messages. In some situations it would be useful to get the messages logged into connector-s4.log as well. The issue is complicated by the fact that the s4-connector code uses univention.debug2 (the Python implementation) while UDM uses the C implementation. In my test I could simply initialize both modules and log to the same file (synchronously) with no problems. The attached patch implements this and introduces a new UCR variable ucr set connector/debug/udm/level maybe there are more elegant solutions to this, but it does the job.
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
This is very useful and necessary
ba32730375: Add possibility to log UDM debug messages. Controlled by two new UCR variables connector/debug/udm/level and connector/debug/udm/function. Unfortunately UDM and S4-Connector have different default debug levels, so I could not simply use connector/debug/level directly, which would be much more convenient in support situations. Anyway, a small step... ea4cb34bd1: Advisory
OK: univention.debug is initialized for UDM FAIL: ud.init() is not called for category ud.LDAP :-/ OK: ud.function can be used ~OK: YAML Be aware, that you will get a lot of stupid log spam due to Bug #50346 and Bug #50347 when setting level=4.
> ~OK: YAML Yes, sorry, forgot to push, merged now in d5abb8df8a.
<http://errata.software-univention.de/ucs/4.4/330.html>