mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 11:48:18 +00:00
HHH-13017 Exception on Service stop isn't logging the full stack
This commit is contained in:
parent
7ff7eec783
commit
ec21c6df5e
@ -266,7 +266,7 @@ public <R extends Service> void stopService(ServiceBinding<R> binding) {
|
||||
( (Stoppable) service ).stop();
|
||||
}
|
||||
catch ( Exception e ) {
|
||||
LOG.unableToStopService( service.getClass(), e.toString() );
|
||||
LOG.unableToStopService( service.getClass(), e );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1279,10 +1279,10 @@ void unableToRollbackIsolatedTransaction(
|
||||
void unableToStopHibernateService(@Cause Exception e);
|
||||
|
||||
@LogMessage(level = INFO)
|
||||
@Message(value = "Error stopping service [%s] : %s", id = 369)
|
||||
@Message(value = "Error stopping service [%s]", id = 369)
|
||||
void unableToStopService(
|
||||
Class class1,
|
||||
String string);
|
||||
@Cause Exception e);
|
||||
|
||||
@LogMessage(level = WARN)
|
||||
@Message(value = "Exception switching from method: [%s] to a method using the column index. Reverting to using: [%<s]",
|
||||
|
@ -389,7 +389,7 @@ public <R extends Service> void stopService(ServiceBinding<R> binding) {
|
||||
( (Stoppable) service ).stop();
|
||||
}
|
||||
catch ( Exception e ) {
|
||||
log.unableToStopService( service.getClass(), e.toString() );
|
||||
log.unableToStopService( service.getClass(), e );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user