Log failure to build model with application id and version
Version is missing in exception, log to make it easier to find which
version is causing this
@@ -197,10 +197,12 @@ public abstract class ModelsBuilder<MODELRESULT extends ModelResult> {
// config models (which is always true for manually deployed zones)
if (allApplicationVersions.size() > 0 && allApplicationVersions.get(0).getModel().skipOldConfigModels(now))
log.log(LogLevel.INFO, applicationId + ": Skipping old version (due to validation override)");
- else
+ else {
+ log.log(LogLevel.ERROR, applicationId + ": Failed to build version " + version);
throw e;
}
}
+ }
return allApplicationVersions;
}
