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

Print unknown MongoDB opcodes #6255

Merged
merged 1 commit into from
Feb 15, 2018
Merged

Print unknown MongoDB opcodes #6255

merged 1 commit into from
Feb 15, 2018

Conversation

adriansr
Copy link
Contributor

@adriansr adriansr commented Feb 1, 2018

When packetbeat encounters an unknown opcode it will print its value as a decimal integer instead of an empty string. Otherwise, it prints the following line in the log:

2018/01/26 06:30:01.311175 mongodb_parser.go:42: ERR Unknown operation code:

which is not very helpful. It has been changed to:

2018/01/26 06:30:01.311175 mongodb_parser.go:42: ERR Unknown operation code: (value=nnn)

Related to #6191

When packetbeat encounters an unknown opcode it will print its
value as a decimal integer instead of an empty string. Otherwise
it will print the following line in the log:

2018/01/26 06:30:01.311175 mongodb_parser.go:42: ERR Unknown operation
code:

which is not very helpful. It has been changed to:

2018/01/26 06:30:01.311175 mongodb_parser.go:42: ERR Unknown operation
code: (value=nnn)
Copy link
Contributor

@exekias exekias left a comment

Choose a reason for hiding this comment

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

LGTM

@exekias
Copy link
Contributor

exekias commented Feb 6, 2018

Should we add a changelog entry for this?

@adriansr
Copy link
Contributor Author

@exekias to me is just a little logging fix, don't think its worthy of a changelog entry

@exekias exekias merged commit 4dea8c2 into elastic:master Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants