Revision c8384ed5
Added by Andreas Müller almost 2 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/taxonGraph/TaxonGraphBeforeTransactionCompleteProcess.java | ||
---|---|---|
27 | 27 |
import org.hibernate.event.spi.PreDeleteEvent; |
28 | 28 |
|
29 | 29 |
import eu.etaxonomy.cdm.api.application.IRunAs; |
30 |
import eu.etaxonomy.cdm.common.LogUtils; |
|
31 | 30 |
import eu.etaxonomy.cdm.config.CdmHibernateListenerConfiguration; |
32 | 31 |
import eu.etaxonomy.cdm.model.name.NomenclaturalSource; |
33 | 32 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
... | ... | |
307 | 306 |
finally { |
308 | 307 |
if (getSession() != null ) { |
309 | 308 |
// temporarySession.close(); // no need to close the session since the session is configured for auto close, see createTempSession() |
310 |
if(origLoggerLevel != null){ |
|
311 |
LogUtils.setLevel("org.hibernate.SQL", origLoggerLevel); |
|
312 |
} |
|
313 | 309 |
} |
314 | 310 |
} |
315 | 311 |
} |
Also available in: Unified diff
ref #10072 new methods for logging with deviating levels and reduce using of setLevel in production code