Currently we have in the log following entries:
no app in context Invalidating tokens older than ...
no app in context
Invalidating tokens older than ...
What about if we write
Backgroundjob Invalidating tokens older than ... ?
I suggest moving the log statement to the matching background job first then adjust the app name.
Currently we don't have an app name for background jobs, in this case the code lives in core so technically the app name would be "core".
Turns out there's the string "cron" for background jobs, so we could use that.
@mmattel PR ?