|
@@ -86,8 +86,12 @@ public class FessBoot extends TomcatBoot {
|
|
|
fessLogPath = "../../logs";
|
|
|
}
|
|
|
op.replace("fess.log.path", fessLogPath.replace("\\", "/"));
|
|
|
- }) // uses jdk14logger
|
|
|
- .asDevelopment(isNoneEnv()).bootAwait();
|
|
|
+ }).asYouLikeIt(resource -> {
|
|
|
+ Host host = resource.getHost();
|
|
|
+ if (host instanceof StandardHost) {
|
|
|
+ ((StandardHost) host).setErrorReportValveClass(SuppressErrorReportValve.class.getName());
|
|
|
+ }
|
|
|
+ }).asDevelopment(isNoneEnv()).bootAwait();
|
|
|
}
|
|
|
|
|
|
public static void shutdown(final String[] args) {
|
|
@@ -121,13 +125,4 @@ public class FessBoot extends TomcatBoot {
|
|
|
protected static String getTomcatConfigPath() {
|
|
|
return System.getProperty(TOMCAT_CONFIG_PATH);
|
|
|
}
|
|
|
-
|
|
|
- @Override
|
|
|
- protected void adjustServer() {
|
|
|
- super.adjustServer();
|
|
|
- final Host host = server.getHost();
|
|
|
- if (host instanceof StandardHost) {
|
|
|
- ((StandardHost) host).setErrorReportValveClass(SuppressErrorReportValve.class.getName());
|
|
|
- }
|
|
|
- }
|
|
|
}
|