Project

General

Profile

Revision f6f24628

IDf6f2462841c10ae5ab47a2a8fef3555e680ac61a
Parent 5d4bae32
Child fec3f60f

Added by Andreas Kohlbecker almost 4 years ago

#7105 printing stacktrace in case of dangerous use of factory.openSession()

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/common/DaoBase.java
47 47
        try {
48 48
            session = factory.getCurrentSession();
49 49
        } catch (HibernateException e) {
50
            logger.error("Opening new session in turn of a HibernateException: " + e.getMessage());
50
            logger.error("Opening new session in turn of a HibernateException", e);
51 51
            session = factory.openSession();
52 52
        }
53 53
        return session;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)