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

Updating logstash to v1 #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomasAlabes
Copy link

logstash['@fields'] = info;
if (info.level) {
logstash.level = info.level;
delete info.level;
Copy link
Contributor

Choose a reason for hiding this comment

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

@tomasAlabes Thanks and sorry for slow review! Only question is: why are you deleting info.level? This doesn't seem necessary and feels like it could interfere with subsequent formatters that expect to find it? Let me know what you think -- thanks!

Copy link
Author

Choose a reason for hiding this comment

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

No problem David.
Honestly, I was just following the pattern of the previous code 🤷‍♂️

@DABH
Copy link
Contributor

DABH commented Mar 11, 2019

Happy to merge once comments are addressed

@@ -23,7 +24,12 @@ module.exports = format(info => {
delete info.timestamp;
}

logstash['@fields'] = info;
Copy link

Choose a reason for hiding this comment

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

Removing this line will also remove all root level fields, not just level.

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