} else {
logLevel = toLogLevelInt(commandLine.get(PROP_LOG_LEVEL),
DEFAULT_LOG_LEVEL);
commandLine.put(LOG_LEVEL_PROP, String.valueOf(logLevel));
}
Logger logger = new Logger();
// prevent tons of needless WARN from the framework
// logger.setLogLevel(logLevel);
logger.setLogLevel(Logger.LOG_ERROR);
// prevent tons of needless WARN messages from the framework
// logger.setLogLevel(logLevel);
logger.setLogLevel(Logger.LOG_ERROR);
try {
ResourceProvider resProvider = new ClassLoaderResourceProvider(
Main.class.getClassLoader());
Sling sling = new Sling(logger, resProvider, props) {