NIHVIVO-1286 - don't log error if miscAppReplacements.rdf file doesn't exist - just log an info.
This commit is contained in:
parent
e20e2af6c6
commit
fed7a251d5
1 changed files with 4 additions and 1 deletions
|
@ -105,7 +105,7 @@ public class UpdateKnowledgeBase implements ServletContextListener {
|
||||||
doMiscAppMetadataReplacements(ctx.getRealPath(MISC_REPLACEMENTS_FILE), oms);
|
doMiscAppMetadataReplacements(ctx.getRealPath(MISC_REPLACEMENTS_FILE), oms);
|
||||||
}
|
}
|
||||||
} catch (Throwable t){
|
} catch (Throwable t){
|
||||||
log.error("Unable to perform miscellaneous application metadata replacements", t);
|
log.warn("Unable to perform miscellaneous application metadata replacements", t);
|
||||||
}
|
}
|
||||||
|
|
||||||
ontologyUpdater.update();
|
ontologyUpdater.update();
|
||||||
|
@ -166,6 +166,9 @@ public class UpdateKnowledgeBase implements ServletContextListener {
|
||||||
applicationMetadataModel.leaveCriticalSection();
|
applicationMetadataModel.leaveCriticalSection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (FileNotFoundException fnfe) {
|
||||||
|
log.info("No miscellaneous application metadata replacements were performed.");
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Error performing miscellaneous application metadata " +
|
log.error("Error performing miscellaneous application metadata " +
|
||||||
" replacements.", e);
|
" replacements.", e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue