Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parent endpoint method to backend logs. #709

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

dhontecillas
Copy link
Contributor

Related to this PR: https://github.com/luraproject/lura/pull/702/files , where we added the parent endpoint, I found that we should have added the request method in order uniquely identify the parent endpoint.

…ent endpoint

Signed-off-by: David Hontecillas <dhontecillas@gmail.com>
@dhontecillas dhontecillas force-pushed the endpoint_method_info_on_backend_logs branch from 4a5f60a to 82c2090 Compare February 16, 2024 09:14
@kpacha kpacha merged commit 7bca413 into master Feb 16, 2024
5 checks passed
@kpacha kpacha deleted the endpoint_method_info_on_backend_logs branch February 16, 2024 13:40
@@ -28,7 +28,7 @@ func NewGraphQLMiddleware(logger logging.Logger, remote *config.Backend) Middlew
if err != nil {
if err != graphql.ErrNoConfigFound {
logger.Warning(
fmt.Sprintf("[BACKEND: %s -> %s][GraphQL] %s", remote.ParentEndpoint, remote.URLPattern, err.Error()))
fmt.Sprintf("[BACKEND: %s %s -> %s][GraphQL] %s", remote.ParentEndpoint, remote.ParentEndpoint, remote.URLPattern, err.Error()))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong, remote.ParentEndpoint -> remote.ParentEndpointMethod

Copy link

This pull request was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants