Skip to content

Commit

Permalink
Fixed annoying stack trace dump if property 'exported' not found
Browse files Browse the repository at this point in the history
  • Loading branch information
rsumbaly committed Sep 26, 2010
1 parent 26a5f7f commit 1acf1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/yahoo/ycsb/Client.java
Expand Up @@ -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);
Expand Down

0 comments on commit 1acf1d0

Please sign in to comment.