Koha/installer/data/mysql/mandatory
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
..
account_credit_types.sql Bug 23012: Database updates for PROCESSING_FOUND account credit type 2022-10-24 17:43:23 -03:00
account_debit_types.sql
audio_alerts.sql
auth_val_cat.sql Bug 32799: Rename ILLSTATUS authorised value category to ILL_STATUS_ALIAS 2023-02-27 13:08:10 -03:00
keyboard_shortcuts.sql
message_transport_types.sql
sample_notices_message_attributes.sql
sample_notices_message_transports.sql
subtag_registry.sql Bug 31715: Add German translations for language descriptions 2022-10-24 11:48:19 -03:00
sysprefs.sql Bug 32057: Add optional stack trace to action logs 2023-03-14 08:49:32 -03:00
userflags.sql Bug 30624: Add loggedinlibrary permission and DB update 2023-03-13 15:22:59 -03:00
userpermissions.sql Bug 20256: Update database 2023-02-02 11:53:20 -03:00