Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
Kyle Hall 1942dbe881
Bug 32057: Add optional stack trace to action logs
It can be useful to know where in Koha a particular logged action was generated from, and how. We should add the ability to attach a syspref controlled basic stack trace with the caller depth controlled via the syspref. We can the call caller() until the specified depth has been reached.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
4) Restart all the things!
5) Set the new syspref ActionLogsTraceDepth to a number ( e.g. 3 )
6) Update a syspref or trigger another enabled log action
7) Query the database: SELECT * FROM action_logs WHERE trace IS NOT NULL
8) Note the stack trace was created!

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-14 08:49:32 -03:00
..
accounting.pref Bug 31730: (QA follow-up) Only link category name 2022-10-24 17:31:11 -03:00
acquisitions.pref Bug 31984: TaxRate preference - add note about vendor updates 2022-12-07 14:23:14 -03:00
admin.pref Bug 32355: Add css class url to URL syspref 2022-12-13 08:43:24 -03:00
authorities.pref Bug 30025: Replace AllowManualAuthorityEditing with RequireChoosingExistingAuthority 2022-09-16 16:48:34 -03:00
cataloguing.pref Bug 31028: (follow-up) System preference terminology 2023-03-06 11:23:17 -03:00
circulation.pref Bug 32803: EnableItemGroups and EnableItemGroupHolds options are wrong 2023-03-02 09:37:45 -03:00
enhanced_content.pref Bug 32355: Add css class url to URL syspref 2022-12-13 08:43:24 -03:00
erm.pref Bug 32147: Capitalization: E-Resource management 2022-11-16 08:46:20 -03:00
i18n_l10n.pref Bug 31886: Fix no sidebar problem in system pref search 2022-10-24 10:37:31 -03:00
interlibrary_loans.pref Bug 32799: Rename ILLSTATUS authorised value category to ILL_STATUS_ALIAS 2023-02-27 13:08:10 -03:00
local_use.pref Bug 31952: (QA follow-up) Fix capitalization: Local Use 2022-10-27 09:36:44 -03:00
logs.pref Bug 32057: Add optional stack trace to action logs 2023-03-14 08:49:32 -03:00
opac.pref Bug 31028: (follow-up) System preference terminology 2023-03-06 11:23:17 -03:00
patrons.pref Bug 31890: Add surname to PrefillGuaranteeField system pref 2023-02-20 09:44:18 -03:00
searching.pref Bug 32355: Add css class url to URL syspref 2022-12-13 08:43:24 -03:00
serials.pref Bug 31886: Fix no sidebar problem in system pref search 2022-10-24 10:37:31 -03:00
staff_interface.pref Bug 30036: Fix trivial typo 2022-10-27 09:56:14 -03:00
tools.pref Bug 29648: (QA follow-up) Remove NumSavedReports from .pref file 2022-04-27 11:20:45 -10:00
web_services.pref Bug 30923: Remove EXPERIMENTAL mark on RESTOAuth2ClientCredentials 2022-06-08 11:06:03 -03:00