From 5313255b1afcff394fbfe145081ac0ceb2cbe283 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 11 Jun 2024 16:06:18 -0400 Subject: [PATCH] Use conn.request_path for more legible error log --- changelog.d/spex-error-log.skip | 0 lib/pleroma/web/api_spec/cast_and_validate.ex | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 changelog.d/spex-error-log.skip diff --git a/changelog.d/spex-error-log.skip b/changelog.d/spex-error-log.skip new file mode 100644 index 000000000..e69de29bb diff --git a/lib/pleroma/web/api_spec/cast_and_validate.ex b/lib/pleroma/web/api_spec/cast_and_validate.ex index eb487fce7..672d1c4a1 100644 --- 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)