System.out.println("JRE: " + Tools.getSystemInformation());
System.exit(0);
}
if(commandLineArguments.isDumpDefaultConfig()) {
final JadConfig jadConfig = new JadConfig();
jadConfig.addConverterFactory(new JodaTimeConverterFactory());
jadConfig.addConfigurationBean(new Configuration());
System.out.println(dumpConfiguration(jadConfig.dump()));
System.exit(0);
}
final JadConfig jadConfig = new JadConfig();
jadConfig.addConverterFactory(new JodaTimeConverterFactory());
final Configuration configuration = readConfiguration(jadConfig, commandLineArguments.getConfigFile());
if(commandLineArguments.isDumpConfig()) {
System.out.println(dumpConfiguration(jadConfig.dump()));
System.exit(0);
}
if (configuration.getPasswordSecret().isEmpty()) {
LOG.error("No password secret set. Please define password_secret in your graylog2.conf.");