element-hq / matrix-authentication-service

GNU Affero General Public License v3.0
10 stars 1 forks source link

Feature: logging REST calls #2238

Open matrixbot opened 1 week ago

matrixbot commented 1 week ago

This issue was originally created by @dklimpel at https://github.com/matrix-org/matrix-authentication-service/issues/2238.

It is very difficult to debug or analyse MAS, because it does not log any REST calls.

It is a kind of webserver without logging.

reivilibre commented 5 days ago

A good idea might be to copy the Synapse request log line format (from F onwards), for familiarity.

Ref: https://github.com/matrix-org/synapse/blob/49e1356ee3d5d72929c91f778b3a231726c1413c/docs/usage/administration/request_log.md

Not all the fields would be applicable (and some are probably hard to implement right now without extra tracking), so those could be left off for now, but at least keeping the format similar/inspired by Synapse should help keep the knowledge transferable.