sanatise trace logging of async jobs (#8892)

This commit is contained in:
dahn 2024-04-24 09:15:26 +02:00 committed by GitHub
parent a358c9a410
commit 1efce77ead
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -644,7 +644,7 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
} else {
// TODO, job wakeup is not in use yet
if (logger.isTraceEnabled())
logger.trace("Unable to find a wakeup dispatcher from the joined job: " + job);
logger.trace("Unable to find a wakeup dispatcher from the joined job: {}", () -> StringUtils.cleanString(job.toString()));
}
} else {
AsyncJobDispatcher jobDispatcher = getDispatcher(job.getDispatcher());