HHH-13017 Exception on Service stop isn't logging the full stack

This commit is contained in:
Sanne Grinovero 2018-10-08 11:44:29 +01:00
parent 7ff7eec783
commit ec21c6df5e
3 changed files with 4 additions and 4 deletions

View File

@ -266,7 +266,7 @@ public class BootstrapServiceRegistryImpl
( (Stoppable) service ).stop();
}
catch ( Exception e ) {
LOG.unableToStopService( service.getClass(), e.toString() );
LOG.unableToStopService( service.getClass(), e );
}
}
}

View File

@ -1279,10 +1279,10 @@ public interface CoreMessageLogger extends BasicLogger {
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]",

View File

@ -389,7 +389,7 @@ public abstract class AbstractServiceRegistryImpl
( (Stoppable) service ).stop();
}
catch ( Exception e ) {
log.unableToStopService( service.getClass(), e.toString() );
log.unableToStopService( service.getClass(), e );
}
}
}