[Koha-bugs] [Bug 30984] Action logs should log the cronjob script name that generated the given log

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 17 13:05:27 CEST 2022


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

--- Comment #1 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 136252
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=136252&action=edit
Bug 30984 - Action logs should log the cronjob script name that generated the
given log

When something is changed by a cronjob, and that entity is logged via action
logs, we can know what changed, and that it was via a cronjob, but we cannot
necessarily know which cronjob made that change. The closest we can come is to
find the action logs for the cronjob module which ran before the change which
is by no means reliable assuming the CronLog is even enabled.

We should add a new column to action logs to store the name of the script ran
for any action logs where the interface is "cron".

Test plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Enable all the Log/Logging sysprefs
4) Run some cronjobs that will generate action logs
5) Note the new action_logs column "script" contains the filename of the
   cronjob that caused the change.

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


More information about the Koha-bugs mailing list