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
This commit is contained in:
@@ -227,7 +227,8 @@ public class PersistenceContext
|
|||||||
// underlying persistent object
|
// underlying persistent object
|
||||||
marshaller.init(this);
|
marshaller.init(this);
|
||||||
if (marshaller.getTableName() != null && _warnOnLazyInit) {
|
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) {
|
} catch (DatabaseException pe) {
|
||||||
|
|||||||
Reference in New Issue
Block a user