HHH-14268 Include stacktrace at WARN level in case of an error occurs when getting the connection metadata

This commit is contained in:
Daniel Wu 2020-10-20 09:23:52 +08:00 committed by Sanne Grinovero
parent 06715dd9b6
commit 4f32f6e1de
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ public class JdbcEnvironmentInitiator implements StandardServiceInitiator<JdbcEn
}
}
catch (Exception e) {
log.unableToObtainConnectionToQueryMetadata( e.getMessage() );
log.unableToObtainConnectionToQueryMetadata( e );
}
}

View File

@ -1161,8 +1161,8 @@ public interface CoreMessageLogger extends BasicLogger {
void unableToObtainConnectionMetadata(String message);
@LogMessage(level = WARN)
@Message(value = "Could not obtain connection to query metadata : %s", id = 342)
void unableToObtainConnectionToQueryMetadata(String message);
@Message(value = "Could not obtain connection to query metadata", id = 342)
void unableToObtainConnectionToQueryMetadata(@Cause Exception e);
@LogMessage(level = ERROR)
@Message(value = "Could not obtain initial context", id = 343)