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 ec2MetadataServiceAvailable property #42

Closed
wants to merge 5 commits into from
Closed

Add ec2MetadataServiceAvailable property #42

wants to merge 5 commits into from

Conversation

haukeh
Copy link

@haukeh haukeh commented Feb 14, 2022

Hi there, while it was totally possible to use the appender while running in ECS containers, where the EC2 MetadataService is not reachable, a stacktrace was logged every time the lookupInstanceName failed, which clutters the log unnecessarily.

This PR introduces an appender property, that allows the user to disable the lookup of instanceId and instanceName completely, thus keeping the log free of unwanted stacktraces. This should also fix #39

Let me know what you think.

Best,
Hauke

@j256
Copy link
Owner

j256 commented Feb 15, 2022

I like the idea @haukeh but can you remove all of the extraneous changes that have nothing to do with the fix? Thanks.

@haukeh
Copy link
Author

haukeh commented Feb 15, 2022

Could you elaborate which changes you don't like?

This pull request was closed.
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.

Support Non-EC2 Launch?
2 participants