Permalink
Browse files

Fixed annoying stack trace dump if property 'exported' not found

  • Loading branch information...
1 parent 26a5f7f commit 1acf1d0444177a86813d1807bb1910041c14ce75 @rsumbaly rsumbaly committed Sep 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/yahoo/ycsb/Client.java
@@ -399,7 +399,7 @@ private static void exportMeasurements(Properties props, int opcount, long runti
}
// if no exporter is provided the default text one will be used
- String exporterStr = props.getProperty("exporter");
+ String exporterStr = props.getProperty("exporter", "com.yahoo.ycsb.measurements.exporter.TextMeasurementsExporter");
try
{
exporter = (MeasurementsExporter) Class.forName(exporterStr).getConstructor(OutputStream.class).newInstance(out);

0 comments on commit 1acf1d0

Please sign in to comment.