You should also always add session/request id (you can use MDC mechanism) to easily grep all logs related to one request.
Also, always gave a name to threads in yours custom thread pool:
[2020-06-29 16:25:34] [thread-2-pool-3] [ERROR ] -some message....
vs
[2020-06-29 16:25:34] [old-session-remover-1] [ERROR ] -some message....
+1 for thread naming, good point! -1 for grepping logs in 2020. :)
Good point!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You should also always add session/request id (you can use MDC mechanism) to easily grep all logs related to one request.
Also, always gave a name to threads in yours custom thread pool:
vs
+1 for thread naming, good point! -1 for grepping logs in 2020. :)
Good point!