Use conn.request_path for more legible error log
This commit is contained in:
parent
de80a7e890
commit
5313255b1a
0
changelog.d/spex-error-log.skip
Normal file
0
changelog.d/spex-error-log.skip
Normal file
@ -54,7 +54,7 @@ defmodule Pleroma.Web.ApiSpec.CastAndValidate do
|
|||||||
|
|
||||||
{:error, reason} ->
|
{:error, reason} ->
|
||||||
Logger.error(
|
Logger.error(
|
||||||
"Strict ApiSpec: request denied to #{conn.path_info} with params #{inspect(conn.params)}"
|
"Strict ApiSpec: request denied to #{conn.request_path} with params #{inspect(conn.params)}"
|
||||||
)
|
)
|
||||||
|
|
||||||
opts = render_error.init(reason)
|
opts = render_error.init(reason)
|
||||||
|
Loading…
Reference in New Issue
Block a user