HHH-14268 Include stacktrace at WARN level in case of an error occurs when getting the connection metadata
This commit is contained in:
parent
06715dd9b6
commit
4f32f6e1de
|
@ -129,7 +129,7 @@ public class JdbcEnvironmentInitiator implements StandardServiceInitiator<JdbcEn
|
|||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.unableToObtainConnectionToQueryMetadata( e.getMessage() );
|
||||
log.unableToObtainConnectionToQueryMetadata( e );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue