HHH-7500 Using logger instead of system out

This commit is contained in:
Hardy Ferentschik 2012-08-03 13:23:11 +02:00
parent 66be75c631
commit c62789ff62
2 changed files with 4 additions and 3 deletions

View File

@ -61,7 +61,6 @@ import org.hibernate.metamodel.spi.binding.AbstractPluralAttributeBinding;
import org.hibernate.metamodel.spi.binding.AttributeBinding;
import org.hibernate.metamodel.spi.binding.Caching;
import org.hibernate.metamodel.spi.binding.EntityBinding;
import org.hibernate.metamodel.spi.binding.PluralAttributeBinding;
import org.hibernate.metamodel.spi.source.MetadataImplementor;
import org.hibernate.service.BootstrapServiceRegistry;
import org.hibernate.service.BootstrapServiceRegistryBuilder;

View File

@ -23,12 +23,15 @@
*/
package org.hibernate.testing.junit4;
import org.jboss.logging.Logger;
import org.junit.runners.model.Statement;
/**
* @author Steve Ebersole
*/
public class BeforeClassCallbackHandler extends Statement {
private static final Logger log = Logger.getLogger( BeforeClassCallbackHandler.class );
private final CustomRunner runner;
private final Statement wrappedStatement;
@ -44,8 +47,7 @@ public class BeforeClassCallbackHandler extends Statement {
}
catch (CallbackException e) {
// be nice to see the exception. but junit seems to be eating it...
System.out.println( "Before class callback error : " + e.getLocalizedMessage() );
e.printStackTrace();
log.error( "Before class callback error : " + e.getLocalizedMessage(), e );
}
wrappedStatement.evaluate();
}