-
Notifications
You must be signed in to change notification settings - Fork 909
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
refactor(userspace): move falco logger under falco engine #3208
Conversation
Signed-off-by: Jason Dellaluce <[email protected]>
This PR may bring feature or behavior changes in the Falco engine and may require the engine version to be bumped. Please double check userspace/engine/falco_engine_version.h file. See versioning for FALCO_ENGINE_VERSION. /hold |
/unhold False positive |
Question, what about creating an entire new target |
No, this for now preserves the single non-circular |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: e6f05b0208f6c6cc688d175b94cb527e47d26ceb
|
Yep let's go with this! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, jasondellaluce, leogr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
/kind cleanup
Any specific area of the project related to this PR?
/area engine
What this PR does / why we need it:
Since introducing the method
evttype_index_ruleset::print_enabled_rules_falco_logger()
, we created an implicit dependency between thefalco_engine
target and the falco logger, which instead lives under thefalco_application
target. The two targets don't depend on each other and the linking succeeds just because they're both included by thefalco
cmake executable target. Pedantic linker checks will have this failing instead, and is fundamentally wrong even if it works by luck.There are many ways for overcome this, but my proposal is to just move the falco logger as part of the falco engine's code. There are many instances in which logging would be useful and it hasn't been done exactly because of this uncomfortable dependency, so moving the component seems like an easy and appropriate fix IMO.
Which issue(s) this PR fixes:
Special notes for your reviewer:
I'll let the reviewers decide on the right milestone. IMO this may be 0.38.0 material for better code quality.
Does this PR introduce a user-facing change?: