mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2026-10-13 09:52:01 -05:00
improve options readout
This commit is contained in:
1 parent
50b77a9401
commit
95e119d759
1 file changed
+2
+2
@@ -42,6 +42,7 @@ import java.io.PrintStream;
|
||||
import java.net.URI;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -209,6 +210,7 @@ public class OpsLoader {
|
||||
return Dryrun.valueOf(dryrunStr);
|
||||
} catch (IllegalArgumentException e) {
|
||||
logger.warn("Invalid dryrun value: '" + dryrunStr + "', defaulting to 'none'");
|
||||
logger.warn("Valid options are " + Arrays.toString(Dryrun.values()));
|
||||
return Dryrun.none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user