Bug 41145

Summary: Logging patron attributes logs even if there's no changes
Product: Koha Reporter: Lisette Scheer <lisette>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: aleisha, gmcharlt, kyle
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 26744    
Bug Blocks:    

Description Lisette Scheer 2025-10-30 16:37:04 UTC
Bug 26744 implemented logging for patron extended attributes.

If a patron is in a batch import and the attributes are the same, it logs a change even if nothing else changed, thus making the patron logs large and unhelpful.

This can be a problem for academic libraries who have automated loading processes to sync patron with their academic systems.

Maybe could use the diff, if diff o=n don't log?
Comment 1 Gretchen Maxeiner 2025-10-30 19:16:18 UTC
We are in this situation. Aside from a huge number of unnecessary log entries for the deleted/readded attributes, the entry is misleading to a staff member trouble-shooting on a patron who doesn't understand the quirk, and it blinds us on actual changes to a patron's attributes. Logging attribute changes is great but we only want to see actual changes.