https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25032 --- Comment #19 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Tomás Cohen Arazi from comment #14)
(In reply to Jonathan Druart from comment #9)
On question however, I think it makes sense to have the API calls logged outside of the usual Koha logs, but when there are called from outside Koha. Should we have them logged in a separate log file even when called from Koha? If you think so, should not we have 1 for OPAC, and 1 for staff?
I'm not sure how we could accomplish that. The API is only one, it is just that some portions are designed to be used from the OPAC and others require privileged access (staff operations). What we could do is adding the full address that was used to access the route, that would give us hints on who called it (even external systems)
I am still wondering if it won't make things complicated for sysops. Maybe it makes sense to have REST API logs in a separate log file when the REST API is called from outside Koha, but not sure for calls within Koha. I am not saying I disagree, but I would like to get opinions on that before moving on. Something else: you should chomp the error string, or it will display on 2 lines ;) Otherwise it works great! -- You are receiving this mail because: You are watching all bug changes.