typo fixes

This commit is contained in:
Jonathan Shook 2020-07-16 09:20:04 -05:00
parent cb6d79f2db
commit 3afbaddf51
4 changed files with 2 additions and 25 deletions

View File

@ -87,25 +87,6 @@ public class DocServerApp {
}
}
// private static void configureDocServerLogging(LoggerContext context) {
// JoranConfigurator jc = new JoranConfigurator();
// jc.setContext(context);
// context.reset();
// context.putProperty("application-name", APPNAME_DOCSERVER);
// InputStream is = DocServerApp.class.getClassLoader().getResourceAsStream("logback-docsys.xml");
// if (is != null) {
// try {
// jc.doConfigure(is);
// } catch (JoranException e) {
// System.err.println("error initializing logging system: " + e.getMessage());
// throw new RuntimeException(e);
// }
// } else {
// throw new RuntimeException("No logging context was provided, and " +
// "logback-docsys.xml could not be loaded from the classpath.");
// }
// }
private static void runServer(String[] serverArgs) {
DocServer server = new DocServer();
for (int i = 0; i < serverArgs.length; i++) {

View File

@ -33,7 +33,7 @@ public class DateRangeParser implements Function<String, DateRange> {
try {
return DateRange.parse(value);
} catch (ParseException e) {
throw new RuntimeException("unable to parse date rage input '" + value + "': error:" + e.getMessage());
throw new RuntimeException("unable to parse date range input '" + value + "': " + e.getMessage());
}
}
}

View File

@ -53,7 +53,7 @@ public class WebDriverAction implements SyncAction, ActivityDefObserver {
return 0;
} catch (Exception e) {
logger.error("Error with cycle(" + value + "), statement(" + commandTemplate.getName() + "): " + e.getMessage());
logger.error("Error with cycle(" + value + "), statement(" + commandTemplate.getName() + "): "+e.getMessage());
if (errors.equals("stop")) {
throw e;
}

View File

@ -55,10 +55,6 @@ public class ScenarioResult {
reporter.report();
logger.info("-- END METRICS DETAIL --");
// if (this.exception!=null && !(this.exception instanceof UserException)) {
// logger.error("Scenario error: " + this.exception.getMessage(),this.exception);
// }
}