fix some obvious logging bugs

This commit is contained in:
Nathan Xu 2020-03-29 05:49:32 -04:00 committed by Andrea Boriero
parent a91383a226
commit 7e571cc75c
3 changed files with 4 additions and 4 deletions

View File

@ -916,7 +916,7 @@ public final class AnnotationBinder {
final boolean generateDiscriminatorColumn;
if ( discriminatorColumnAnnotation != null ) {
if ( context.getBuildingOptions().ignoreExplicitDiscriminatorsForJoinedInheritance() ) {
LOG.debugf( "Ignoring explicit DiscriminatorColumn annotation on ", clazzToProcess.getName() );
LOG.debugf( "Ignoring explicit DiscriminatorColumn annotation on: %s", clazzToProcess.getName() );
generateDiscriminatorColumn = false;
}
else {

View File

@ -78,7 +78,7 @@ public class BatchingBatch extends AbstractBatchImpl {
}
catch ( SQLException e ) {
abortBatch();
LOG.debugf( "SQLException escaped proxy", e );
LOG.debug( "SQLException escaped proxy", e );
throw sqlExceptionHelper().convert( e, "could not perform addBatch", currentStatementSql );
}
statementPosition++;

View File

@ -61,8 +61,8 @@ public class DefaultSchemaNameResolver implements SchemaNameResolver {
}
catch (Exception ignore) {
log.debugf(
"Unable to use Java 1.7 Connection#getSchema : An error occurred trying to resolve the connection default schema resolver: "
+ ignore.getMessage() );
"Unable to use Java 1.7 Connection#getSchema : An error occurred trying to resolve the connection default schema resolver: %s",
ignore.getMessage() );
return SchemaNameResolverFallbackDelegate.INSTANCE;
}
}