Skip to content

Commit

Permalink
Avoid logger serialization behind shared EntityManager proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Dec 12, 2024
1 parent 6836862 commit 95003e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public static EntityManager createSharedEntityManager(EntityManagerFactory emf,
@SuppressWarnings("serial")
private static class SharedEntityManagerInvocationHandler implements InvocationHandler, Serializable {

private final Log logger = LogFactory.getLog(getClass());
private static final Log logger = LogFactory.getLog(SharedEntityManagerInvocationHandler.class);

private final EntityManagerFactory targetFactory;

Expand Down

0 comments on commit 95003e3

Please sign in to comment.