]> git.koha-community.org Git - koha.git/commit
Bug 25527: Initialize the logger when required
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 18 May 2020 12:23:42 +0000 (09:23 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 18 May 2020 14:24:47 +0000 (15:24 +0100)
commit48e3e6aafb04fbe6eea33da8550c9952a3f52a11
treefd49f3b1e5c0c35d296f0e8735d0809de3690e9b
parent5117fab4890f86b8f11a129485917db3d357b920
Bug 25527: Initialize the logger when required

In an OO package, the logger initialization should happen in the
constructor. This is not an OO package and the initialization is
happening on loading it. This is a wrong behaviour and certainly breaks
in environments where initialization cannot happen (package building,
for example). There could be several options to solve this, as it is
used in a single sub on this package, I opted for initializing on that
sub.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/ImportBatch.pm