HHH-14268 Include stacktrace at WARN level in case of an error occurs when getting the connection metadata
This commit is contained in:
parent
f17c0f7a03
commit
d9ec18fad7
|
@ -129,7 +129,7 @@ public class JdbcEnvironmentInitiator implements StandardServiceInitiator<JdbcEn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
log.unableToObtainConnectionToQueryMetadata( e.getMessage() );
|
log.unableToObtainConnectionToQueryMetadata( e );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1161,8 +1161,8 @@ public interface CoreMessageLogger extends BasicLogger {
|
||||||
void unableToObtainConnectionMetadata(String message);
|
void unableToObtainConnectionMetadata(String message);
|
||||||
|
|
||||||
@LogMessage(level = WARN)
|
@LogMessage(level = WARN)
|
||||||
@Message(value = "Could not obtain connection to query metadata : %s", id = 342)
|
@Message(value = "Could not obtain connection to query metadata", id = 342)
|
||||||
void unableToObtainConnectionToQueryMetadata(String message);
|
void unableToObtainConnectionToQueryMetadata(@Cause Exception e);
|
||||||
|
|
||||||
@LogMessage(level = ERROR)
|
@LogMessage(level = ERROR)
|
||||||
@Message(value = "Could not obtain initial context", id = 343)
|
@Message(value = "Could not obtain initial context", id = 343)
|
||||||
|
|
Loading…
Reference in New Issue