Skip to content

Conversation

Zabuzard
Copy link
Member

@Zabuzard Zabuzard commented Aug 13, 2022

Overview

Closes #490. Some exceptions slipped through the logging system. Most notable, anything happening inside Routines. Even worse, the routine actually stopped forever (until the next bot restart).

This fixes the issue by:

  • adding a global default uncaught handler
  • additionally logging for scheduled executor services, which otherwise supress and wrap the exceptions into the future

An example of a quick test exception from a routine, which is now correctly logged:

example exception

@Zabuzard Zabuzard added enhancement New feature or request priority: major labels Aug 13, 2022
@Zabuzard Zabuzard self-assigned this Aug 13, 2022
@Zabuzard Zabuzard requested review from a team as code owners August 13, 2022 18:46
Copy link
Contributor

@marko-radosavljevic marko-radosavljevic left a comment

Choose a reason for hiding this comment

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

❤️

Taz03
Taz03 previously approved these changes Aug 14, 2022
* for scheduled services, it has to be done manually since their exception gets supressed and put into the future. also, those routines shouldnt stop if one failed
@Zabuzard Zabuzard dismissed stale reviews from Taz03 and marko-radosavljevic via ddf682c August 15, 2022 07:22
@Zabuzard Zabuzard force-pushed the feature/uncaught_exception_handler branch from fead8d1 to ddf682c Compare August 15, 2022 07:22
@Zabuzard
Copy link
Member Author

quick rebase, no code changes

@Zabuzard
Copy link
Member Author

(merging with 2 prior approvals)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Zabuzard Zabuzard merged commit e579de6 into develop Aug 15, 2022
@Zabuzard Zabuzard deleted the feature/uncaught_exception_handler branch August 15, 2022 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unhandled exception listener

3 participants