Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
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
..
preferences Bug 32057: Add optional stack trace to action logs 2023-03-14 08:49:32 -03:00
searchengine/elasticsearch Bug 32519: In Elasticsearch mappings table use of search field name and label 2023-03-10 12:04:10 -03:00
additional-fields.tt
admin-home.tt
adveditorshortcuts.tt
aqbudgetperiods.tt
aqbudgets.tt
aqcontract.tt
aqplan.tt
audio_alerts.tt
auth_subfields_structure.tt
auth_tag_structure.tt
authorised_values.tt Bug 32799: Rename ILLSTATUS authorised value category to ILL_STATUS_ALIAS 2023-02-27 13:08:10 -03:00
authtypes.tt
background_jobs.tt
biblio_framework.tt
branch_transfer_limits.tt
branches.tt
cash_registers.tt
categories.tt
checkmarc.tt
cities.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
classsources.tt
clone-rules.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
columns_settings.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
credit_types.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
curbside_pickup.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
currency.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
debit_types.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
desks.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
didyoumean.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
edi_accounts.tt Bug 33068: Use template wrapper for breadcrumbs: Administration part 3 2023-03-06 14:45:14 -03:00
edi_ean_accounts.tt
identity_provider_domains.tt
identity_providers.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt
itemtypes.tt
koha2marclinks.tt
library_groups.tt
localization.tt
marc-overlay-rules.tt
marc_subfields_structure.tt
marctagstructure.tt
matching-rules.tt
oai_set_mappings.tt
oai_sets.tt
overdrive.tt
patron-attr-types.tt
preferences.tt Bug 32926: Assign unique ids to <h3> elements 2023-02-24 17:52:30 -03:00
restrictions.tt Bug 32886: Set focus for cursor to Code when adding a new restriction 2023-03-10 11:15:38 -03:00
search_filters.tt
share_content.tt
smart-rules.tt
sms_providers.tt
smtp_servers.tt
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt
transfer_limits.tt
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt