Reformatted code in appropriate style

Build fails server side only due to some dependency issue. Internet problem server side?? (M I C H A E L?)

tags: #issue[34]
This commit is contained in:
William Muir
2017-08-03 12:06:07 +12:00
parent 53f5d63f15
commit 1160f274ee
+6 -4
View File
@@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory;
import seng302.model.PolarTable;
public class App extends Application {
private static Logger logger = LoggerFactory.getLogger(App.class);
public static void parseArgs(String[] args) throws ParseException {
@@ -20,15 +21,16 @@ public class App extends Application {
CommandLineParser parser = new DefaultParser();
CommandLine cmd;
ch.qos.logback.classic.Logger rootLogger = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
ch.qos.logback.classic.Logger rootLogger = (ch.qos.logback.classic.Logger) LoggerFactory
.getLogger(Logger.ROOT_LOGGER_NAME);
options.addOption("debugLevel", true, "Set the application debug level");
cmd = parser.parse(options, args);
if (cmd.hasOption("debugLevel")){
if (cmd.hasOption("debugLevel")) {
switch (cmd.getOptionValue("debugLevel")){
switch (cmd.getOptionValue("debugLevel")) {
case "DEBUG":
rootLogger.setLevel(Level.DEBUG);
break;
@@ -54,7 +56,7 @@ public class App extends Application {
default:
rootLogger.setLevel(Level.ALL);
}
} else{
} else {
rootLogger.setLevel(Level.WARN);
}
}