Skip to content

Commit

Permalink
Consistent default error handling/logging for all scheduled tasks
Browse files Browse the repository at this point in the history
Closes gh-32298
  • Loading branch information
jhoeller committed Feb 20, 2024
1 parent 06a39f1 commit 85c9279
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -184,7 +184,7 @@ protected void doExecute(Runnable task) {
}

private Runnable scheduledTask(Runnable task) {
return () -> execute(task);
return () -> execute(new DelegatingErrorHandlingRunnable(task, TaskUtils.LOG_AND_PROPAGATE_ERROR_HANDLER));
}

private Runnable taskOnSchedulerThread(Runnable task) {
Expand Down

0 comments on commit 85c9279

Please sign in to comment.