Univention Bugzilla – Bug 43778
univention-fix-ucr-dns logs "__main__", script name would be more helpful
Last modified: 2020-07-03 20:53:49 CEST
Created attachment 8513 [details] setup_logging.patch The log messages issued by univention-fix-ucr-dns don't mention the name of the script, just "__main__". The attached patch fixes that. Before: root@backup101:~# /usr/share/univention-server/univention-fix-ucr-dns -d 2017-03-09 18:04:20,485 INFO __main__.ucr/fwd Found forwarder 10.200.8.1 from UCRV dns/forwarder1 2017-03-09 18:04:20,489 INFO __main__.ucr/fwd Found forwarder 10.200.8.100 from UCRV dns/forwarder2 2017-03-09 18:04:20,490 INFO __main__.ucr/ns Found server 10.200.8.101 from UCRV nameserver1 2017-03-09 18:04:20,490 INFO __main__.ucr/ns Found server 10.200.8.100 from UCRV nameserver2 2017-03-09 18:04:20,494 INFO __main__.val Validated UCS domain server: 10.200.8.101 2017-03-09 18:04:20,496 INFO __main__.val Validated UCS domain server: 10.200.8.100 2017-03-09 18:04:20,496 INFO __main__.xor Skip removing nameservers from forwarders 2017-03-09 18:04:20,496 INFO __main__ No action required. After: root@backup101:~# ./univention-fix-ucr-dns -d 2017-03-09 18:05:06,992 INFO univention-fix-ucr-dns Found forwarder 10.200.8.1 from UCRV dns/forwarder1 2017-03-09 18:05:06,995 INFO univention-fix-ucr-dns Found forwarder 10.200.8.100 from UCRV dns/forwarder2 2017-03-09 18:05:06,996 INFO univention-fix-ucr-dns Found server 10.200.8.101 from UCRV nameserver1 2017-03-09 18:05:06,996 INFO univention-fix-ucr-dns Found server 10.200.8.100 from UCRV nameserver2 2017-03-09 18:05:07,000 INFO univention-fix-ucr-dns Validated UCS domain server: 10.200.8.101 2017-03-09 18:05:07,001 INFO univention-fix-ucr-dns Validated UCS domain server: 10.200.8.100 2017-03-09 18:05:07,002 INFO univention-fix-ucr-dns Skip removing nameservers from forwarders 2017-03-09 18:05:07,002 INFO univention-fix-ucr-dns No action required. +++ This bug was initially created as a clone of Bug #43217 +++
Created attachment 8515 [details] setup_logging.patch v2 (In reply to Arvid Requate from comment #0) ... > The log messages issued by univention-fix-ucr-dns don't mention the name of > the script, just "__main__". The attached patch fixes that. The proposed patch looses the hierarchy: > Before: > [...] INFO __main__.ucr/fwd [...] ^^^^^^^ ... > After: > [...] INFO univention-fix-ucr-dns [...] That information is important. Better do this: sed -i -e '/getLogger/s/__name__//' -e '/FORMAT/s/-17s/-8s/' base/univention-server/univention-fix-ucr-dns
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.