[Koha-bugs] [Bug 32791] Log4perl configuration files need a tool for updating on package upgrade

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 2 04:25:32 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32791

--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
This is a first draft so I'm happy to tweak the koha-log4perl tool. 

On one hand, it would be nice to have this code in a Koha Perl module so that
it could be suitably unit tested.

On the other hand, it's Debian-specific, so we'll need to be abstract the
snippets more, and we'll need to make the koha-log4perl tool aware of paths in
PERL5LIB. Probably parsing it, splitting it, and then using "use lib $path". 

I'm not opposed to that. But it's a consideration. 

It probably would be better to put it into a Perl module and unit test it, so
that we can fully automate the testing of this one. 

--

Anyway, I mostly wanted to do these patches as a proof of concept and then get
feedback.

I think it's a big step forward from doing this all in
debian/koha-common.postinst and debian/koha-core.postinst themselves.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list