[Tracker] Better logging messages/reports
Currently we quite lack good messages into our logging. Went grep-fu on my logs a bit and this is what I found so far. Feel free to add some either directly or into comments.
-
[error] Couldn't fetch "https://kawen.space/objects/b8af0b75-6a22-44de-af0e-b97efe77943f", error: nil
→ Probably got a 404 error -
Follower/Following counter update for #{user.ap_id} failed.\n#{inspect(e)}
&"Follower/Following counter update for #{data.ap_id} failed.\n" <> inspect(e)
→ Maybe it should be on one line for bettergrep
ability?
HTTP Signatures
-
Could not validate against known public keys: {:error, :error}
MRF Rejects
Currently one reject when receiving on /inbox
will tend to spew the following extraneous lines after some like a okay-ish [error] Could not decode user at fetch <redacted actor ap_id>, {:error, {:reject, nil}}
:
-
[error] Internal server error: %MatchError{term: {:error, {:error, {:reject, nil}}}}
-
[error] #PID<0.24881.27> running Pleroma.Web.Endpoint (connection #PID<0.23781.27>, stream id 1) terminated Server: localhost:4000 (http) Request: POST /inbox ** (exit) an exception was raised: ** (FunctionClauseError) no function clause matching in Plug.Conn.resp/3 (plug) lib/plug/conn.ex:577: Plug.Conn.resp(…)