[Koha-bugs] [Bug 30738] New: Log warnings in forked CGI MARC import
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 12 05:46:29 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30738
Bug ID: 30738
Summary: Log warnings in forked CGI MARC import
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: MARC Bibliographic record staging/import
Assignee: koha-bugs at lists.koha-community.org
Reporter: dcook at prosentient.com.au
QA Contact: testopia at bugs.koha-community.org
While most of Koha can use Plack/PSGI these days, there are still a few CGI
scripts like "manage-marc-import.pl".
This script forks itself in order to run in the background, and in so doing it
closes STDOUT and STDERR to tell Apache not to control it anymore. (One day I
hope to make this use the RabbitMQ, but that day is not today.)
Unfortunately, this means warnings get suppressed. I've noticed cases (usually
with items) where a fatal error causes the import to fail (with the batch stuck
in "Importing" with a 0% job progress bar) and there are no warnings in the
logs! Very frustrating!
But we can use Koha::Logger to save the day...
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list