BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
661 stars 267 forks source link

web:forward: Write log entry #2231

Closed ChristianGruen closed 11 months ago

ChristianGruen commented 11 months ago

For multiple contiguous server operations, web:forward can be used. The current logs contain only one response entry, and the runtime for the first request is lost:

<entry time="…" address="…" user="…" type="REQUEST">[GET] /op</entry>
<entry time="…" address="…" user="…" type="REQUEST">[GET] /op2</entry>
<entry time="…" address="…" user="…" type="200" ms="17.69"/>

If merged log entries are admin:logs($date, true()) are requested, the response is associated with the last request:

REQUEST   0.00  [POST] /op
200      17.69  [POST] /op2

Before each forward, a log entry with a 2xx code (maybe 204) should be written to the logs.