-
Notifications
You must be signed in to change notification settings - Fork 174
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
Fix error handling AWS Security Lake with memlog
usage
#389
Comments
Thanks for your comments. I'll be happy to review a PR from you to fix my silly mistakes 👍 |
embano1
added a commit
to embano1/falcosidekick
that referenced
this issue
Jan 15, 2023
Closes: falcosecurity#389 Signed-off-by: Michael Gasch <[email protected]>
embano1
added a commit
to embano1/falcosidekick
that referenced
this issue
Feb 2, 2023
Closes: falcosecurity#389 Signed-off-by: Michael Gasch <[email protected]>
embano1
added a commit
to embano1/falcosidekick
that referenced
this issue
Feb 2, 2023
Closes: falcosecurity#389 Signed-off-by: Michael Gasch <[email protected]>
poiana
pushed a commit
that referenced
this issue
Feb 10, 2023
Closes: #389 Signed-off-by: Michael Gasch <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As the maintainer of
memlog
I am happy you are using my package! Actually found out incidentally while checking importers of the package. Went through the code and IMHO there are some minor corrections or clarifications needed for the error handling logic in:falcosidekick/outputs/awssecuritylake.go
Lines 196 to 227 in 41d5308
For example, this line feels redundant as
Write()
never throws "future offset" - can be simplified:if err.Error() != "future offset"
Also, I recommend using
errors.Is(err, memlog.Err<Type>)
instead of string assertions.if count > 0
ignores error cases wherecount == 0
.I am happy to provide a PR, just wanted to better understand the error handling code from the author @Issif
The text was updated successfully, but these errors were encountered: