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

Log print memory address instead service.Name #915

Merged
merged 1 commit into from
Oct 20, 2020
Merged

Conversation

artemsre
Copy link
Contributor

service.Name for this point is kong.String('') and it's pointer to string. As a result in logs I can see only RAM address:

time="2020-10-20T12:39:52Z" level=warning msg="skipping service - getServiceEndpoints failed: no suitable port found" component=store service_name=0xc000bacaf0 time="2020-10-20T12:39:52Z" level=warning msg="skipping service - getServiceEndpoints failed: no suitable port found" component=store service_name=0xc000bac9a0

And after fix:
time="2020-10-20T14:35:02Z" level=warning msg="skipping service - getServiceEndpoints failed: no suitable port found" component=store service_name=default.kong-ingress-add-gcp-stg-zendesk-sso-gcp-stg-root.80 time="2020-10-20T14:35:02Z" level=warning msg="skipping service - getServiceEndpoints failed: no suitable port found" component=store service_name=default.kong-ingress-add-gcp-stg-fms-gcp-stg.80

@CLAassistant
Copy link

CLAassistant commented Oct 20, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@mflendrich mflendrich left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

Thank you for your contribution, @artemsre!

@mflendrich mflendrich merged commit dfa37c0 into Kong:main Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants