[Koha-bugs] [Bug 32057] Add optional stack trace to action logs
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 21 18:41:40 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32057
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #144735|0 |1
is obsolete| |
--- Comment #11 from David Nind <david at davidnind.com> ---
Created attachment 144786
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144786&action=edit
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 at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list