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

suppress optional callback exception #1082

Closed
wants to merge 2 commits into from

Conversation

sbcd90
Copy link
Collaborator

@sbcd90 sbcd90 commented Aug 9, 2023

Issue #, if available:

Description of changes:
suppress optional callback exception

CheckList:

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #1082 (8f22485) into main (b1f4bed) will increase coverage by 0.15%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #1082      +/-   ##
============================================
+ Coverage     67.60%   67.75%   +0.15%     
  Complexity      105      105              
============================================
  Files           160      160              
  Lines         10343    10343              
  Branches       1522     1522              
============================================
+ Hits           6992     7008      +16     
+ Misses         2686     2672      -14     
+ Partials        665      663       -2     
Files Changed Coverage Δ
.../opensearch/alerting/DocumentLevelMonitorRunner.kt 84.10% <100.00%> (ø)

... and 6 files with indirect coverage changes

@@ -454,7 +454,7 @@ object DocumentLevelMonitorRunner : MonitorRunner() {
publishFinding(monitor, monitorCtx, finding)
} catch (e: Exception) {
// suppress exception
logger.error("Optional finding callback failed", e)
logger.info("Optional finding callback failed: ${e.message}")
Copy link
Member

Choose a reason for hiding this comment

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

Should this be changed to debug? This would occur every time a doc level monitor is running even if the user never using security analytics plugin as its currently the only plugin to use this.

@sbcd90 sbcd90 closed this Aug 10, 2023
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