From f4ff35462169728839e7769dc70c2ccd3c310f6d Mon Sep 17 00:00:00 2001 From: samskivert Date: Wed, 10 Sep 2008 18:01:24 +0000 Subject: [PATCH] Let's log a stack trace on lazy initialization so that we can see who the culprit is. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2411 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/jdbc/depot/PersistenceContext.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/com/samskivert/jdbc/depot/PersistenceContext.java b/src/java/com/samskivert/jdbc/depot/PersistenceContext.java index 7964237e..9e770212 100644 --- a/src/java/com/samskivert/jdbc/depot/PersistenceContext.java +++ b/src/java/com/samskivert/jdbc/depot/PersistenceContext.java @@ -227,7 +227,8 @@ public class PersistenceContext // underlying persistent object marshaller.init(this); if (marshaller.getTableName() != null && _warnOnLazyInit) { - log.warning("Record initialized lazily [type=" + type.getName() + "]."); + log.warning("Record initialized lazily", "type", type.getName(), + new Exception()); } } } catch (DatabaseException pe) {