Deprecate use of httpRoot in settings and add warning

(no change is actual behaviour yet - just warning)
Should we remove option from settings ? or just label it ?
This commit is contained in:
Dave Conway-Jones
2021-04-23 15:42:57 +01:00
parent dd12572b1d
commit fdd0a93bad
3 changed files with 7 additions and 3 deletions

View File

@@ -181,6 +181,9 @@ function start() {
if (settings.settingsFile) {
log.info(log._("runtime.paths.settings",{path:settings.settingsFile}));
}
if (settings.httpRoot !== undefined) {
log.warn(log._("server.httproot-deprecated"));
}
if (settings.httpStatic) {
log.info(log._("runtime.paths.httpStatic",{path:path.resolve(settings.httpStatic)}));
}