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 d7a3971 commit 54a90b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,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 54a90b2

Please sign in to comment.