Class LogSuppressingUtil
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.LogSuppressingUtil
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
withSuppressedHibernateLogging
(Runnable runnable) This method will suppress Hibernate error logging around operations which are expected to fail.
-
Field Details
-
SUPPRESS_HIBERNATE_LOGGING_MDC_KEY
- See Also:
-
-
Method Details
-
withSuppressedHibernateLogging
This method will suppress Hibernate error logging around operations which are expected to fail. Seecom.atlassian.crowd.console.logging.HibernateLogSuppressingMdcFilter
for more details.- Parameters:
runnable
- the DB operation for which Hibernate logging should be suppressed
-