Univention Bugzilla – Attachment 9872 Details for
Bug 48816
log configuration errors to job logfile
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
try to log setup errors to the job logfile
log_setup_errors_to_job_logfile.patch (text/plain), 752 bytes, created by
Daniel Tröder
on 2019-02-28 09:04 CET
(
hide
)
Description:
try to log setup errors to the job logfile
Filename:
MIME Type:
Creator:
Daniel Tröder
Created:
2019-02-28 09:04 CET
Size:
752 bytes
patch
obsolete
>diff --git a/ucs-school-import/modules/ucsschool/http_api/import_api/tasks.py b/ucs-school-import/modules/ucsschool/http_api/import_api/tasks.py >index 4d519000d..3f88d65c3 100644 >--- a/ucs-school-import/modules/ucsschool/http_api/import_api/tasks.py >+++ b/ucs-school-import/modules/ucsschool/http_api/import_api/tasks.py >@@ -92,6 +92,8 @@ def run_import_job(task, importjob_id): > runner.prepare_import() > except Exception as exc: > logger.exception('An error occurred while preparing the import job: {}'.format(exc)) >+ if runner.logger: >+ runner.logger.exception('An error occurred while preparing the import job: {}'.format(exc)) > else: > # from here on we can log with the import logger > runner.logger.info('-- Starting import job... --')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 48816
: 9872