[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
Tue Nov 1 12:04:22 CET 2022


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #142855|0                           |1
        is obsolete|                            |

--- Comment #2 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 142857
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142857&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!

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


More information about the Koha-bugs mailing list