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 class BootstrapServiceRegistryImpl
|
||||||
( (Stoppable) service ).stop();
|
( (Stoppable) service ).stop();
|
||||||
}
|
}
|
||||||
catch ( Exception e ) {
|
catch ( Exception e ) {
|
||||||
LOG.unableToStopService( service.getClass(), e.toString() );
|
LOG.unableToStopService( service.getClass(), e );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1279,10 +1279,10 @@ public interface CoreMessageLogger extends BasicLogger {
|
||||||
void unableToStopHibernateService(@Cause Exception e);
|
void unableToStopHibernateService(@Cause Exception e);
|
||||||
|
|
||||||
@LogMessage(level = INFO)
|
@LogMessage(level = INFO)
|
||||||
@Message(value = "Error stopping service [%s] : %s", id = 369)
|
@Message(value = "Error stopping service [%s]", id = 369)
|
||||||
void unableToStopService(
|
void unableToStopService(
|
||||||
Class class1,
|
Class class1,
|
||||||
String string);
|
@Cause Exception e);
|
||||||
|
|
||||||
@LogMessage(level = WARN)
|
@LogMessage(level = WARN)
|
||||||
@Message(value = "Exception switching from method: [%s] to a method using the column index. Reverting to using: [%<s]",
|
@Message(value = "Exception switching from method: [%s] to a method using the column index. Reverting to using: [%<s]",
|
||||||
|
|
|
@ -389,7 +389,7 @@ public abstract class AbstractServiceRegistryImpl
|
||||||
( (Stoppable) service ).stop();
|
( (Stoppable) service ).stop();
|
||||||
}
|
}
|
||||||
catch ( Exception e ) {
|
catch ( Exception e ) {
|
||||||
log.unableToStopService( service.getClass(), e.toString() );
|
log.unableToStopService( service.getClass(), e );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue