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

Change message from warning to error when extension could not be loaded #8260

Merged

Conversation

getvictor
Copy link
Contributor

Fixes #8254

When an extension cannot be loaded due to a duplicate item/extension name, print error instead of warning. Also, print clearer message for duplicate item.

… print error instead of warning. Also, print clearer message.
@getvictor getvictor changed the title When extension cannot be loaded due to duplicate item/extension name,… Update message when extension could not be loaded due to duplicate Jan 28, 2024
@getvictor getvictor changed the title Update message when extension could not be loaded due to duplicate Change message from warning to error when extension could not be loaded Jan 28, 2024
@getvictor getvictor marked this pull request as ready for review January 28, 2024 21:58
@getvictor getvictor requested review from a team as code owners January 28, 2024 21:58
Copy link
Member

@directionless directionless left a comment

Choose a reason for hiding this comment

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

I think it's okay.

Comment on lines -92 to +94
return Status(1, "Duplicate registry item: " + item.first);
return Status(1,
"Registry item " + item.first +
" conflicts with another item of the same name.");
Copy link
Member

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the message a bit clearer. We had a customer hitting issues with duplicate table names, so we decided to look into this area and see if we could do something.

Copy link
Member

Choose a reason for hiding this comment

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

Okay? I think "Duplicate" is pretty clear, and easy to grep for in logs. But I don't think I've hit it, and don't actually have an issue with the rewording.

@directionless directionless added this to the 5.12.0 milestone Feb 6, 2024
@directionless
Copy link
Member

@Smjert You looked involved with #8254 any concerns?

@zwass zwass merged commit 91c6fbd into osquery:master Feb 27, 2024
16 checks passed
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.

--extensions_require does not exit on fail, and keeps trying to load bad extension
3 participants