Improving startup code
This commit is contained in:
parent
7ea388aec1
commit
48eeb52931
|
@ -67,8 +67,10 @@ public class SmartExecutorInitializator implements ApplicationManager {
|
|||
try {
|
||||
isPublisher.publishPlugins(availablePlugins);
|
||||
}catch (Exception e) {
|
||||
logger.error("Unable to create plugins is resources in context {}. The Service will be aborted", scope, e);
|
||||
if(!(isPublisher instanceof RestISPublisher)) {
|
||||
if(isPublisher instanceof RestISPublisher) {
|
||||
logger.warn("Unable to create RunningPlugin in context {}. {}", scope, e.getMessage());
|
||||
} else {
|
||||
logger.error("Unable to create ServiceEndpoint in context {}. The Service will be aborted", scope, e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue