commit: 61506f8d9360f501b0e771e4a948cafbb50d6401
parent de80a7e8906cb54b436a2f6a754b05c4eae13d79
Author: feld <feld@feld.me>
Date: Tue, 11 Jun 2024 20:08:08 +0000
Merge branch 'api-spex-error' into 'develop'
ApiSpec: Use conn.request_path for more legible error log
See merge request pleroma/pleroma!4145
Diffstat:
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/changelog.d/spex-error-log.skip b/changelog.d/spex-error-log.skip
diff --git a/lib/pleroma/web/api_spec/cast_and_validate.ex b/lib/pleroma/web/api_spec/cast_and_validate.ex
@@ -54,7 +54,7 @@ defmodule Pleroma.Web.ApiSpec.CastAndValidate do
{:error, reason} ->
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)