private void startupIfEnginesAreMissing() { // Using a jdk which doesn't bundle a javascript engine // throws a NoClassDefFoundError while logging the warning // see https://github.com/orientechnologies/orientdb/issues/5855 OLogManager.instance().setWarnEnabled(false); // If an instance of Orient was previously shutdown all engines are removed. // We need to startup Orient again. if (Orient.instance().getEngines().isEmpty()) { Orient.instance().startup(); } OLogManager.instance().setWarnEnabled(true); }
/** * Until OrientDB cleans up its logging infrastructure, this synchronizes its global minimum log level to the minimum * log level configured for any of its loggers. * * @see http://www.prjhub.com/#/issues/3744 * @see http://www.prjhub.com/#/issues/5327 */ private void configureOrientMinimumLogLevel() { int minimumLevel = getOrientMininumLogLevel(); log.debug("Configuring OrientDB global minimum log level to {}", minimumLevel); OLogManager logManager = OLogManager.instance(); logManager.setDebugEnabled(minimumLevel <= Level.FINE.intValue()); logManager.setInfoEnabled(minimumLevel <= Level.INFO.intValue()); logManager.setWarnEnabled(minimumLevel <= Level.WARNING.intValue()); logManager.setErrorEnabled(minimumLevel <= Level.SEVERE.intValue()); }
private void startupIfEnginesAreMissing() { // Using a jdk which doesn't bundle a javascript engine // throws a NoClassDefFoundError while logging the warning // see https://github.com/orientechnologies/orientdb/issues/5855 OLogManager.instance().setWarnEnabled(false); // If an instance of Orient was previously shutdown all engines are removed. // We need to startup Orient again. if (Orient.instance().getEngines().isEmpty()) { Orient.instance().startup(); } OLogManager.instance().setWarnEnabled(true); }