Univention Bugzilla – Bug 54771
change print to proper logging in import_computer
Last modified: 2022-06-08 09:13:56 CEST
The computer import (ucsschool/ucs-school-import/usr/share/ucs-school-import/scripts/import_computer) uses print statements for logging. This should be changed changed to a proper logging. At the same time we want to keep the logging output to the console. Out of scope: other import scripts. This should be done one by one to keep the bug size small. Hint: There is already some logic for this in the ucs-school-import for users, maybe this can be reused.
Please use ucsschool.lib.models.utils.get_stream_handler() and ...get_file_handler() for writing the log to stdout/stderr and log files