mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
merge fixups - partial
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<artifactId>mvn-defaults</artifactId>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<version>4.15.51-SNAPSHOT</version>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
<relativePath>../mvn-defaults</relativePath>
|
||||
</parent>
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>engine-core</artifactId>
|
||||
<version>4.15.51-SNAPSHOT</version>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.nosqlbench</groupId>
|
||||
<artifactId>engine-docker</artifactId>
|
||||
<version>4.15.51-SNAPSHOT</version>
|
||||
<version>4.15.52-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
@@ -343,6 +343,10 @@ public class NBCLI {
|
||||
logger.info("console logging level is " + options.getConsoleLogLevel());
|
||||
|
||||
ScenariosExecutor executor = new ScenariosExecutor("executor-" + sessionName, 1);
|
||||
if (options.getConsoleLogLevel().isGreaterOrEqualTo(NBLogLevel.WARN)) {
|
||||
options.setWantsStackTraces(true);
|
||||
logger.debug("enabling stack traces since log level is " + options.getConsoleLogLevel());
|
||||
}
|
||||
|
||||
Scenario scenario = new Scenario(
|
||||
sessionName,
|
||||
|
||||
@@ -173,6 +173,10 @@ public class NBCLIOptions {
|
||||
return reportSummaryTo;
|
||||
}
|
||||
|
||||
public void setWantsStackTraces(boolean wantsStackTraces) {
|
||||
this.showStackTraces=wantsStackTraces;
|
||||
}
|
||||
|
||||
public enum Mode {
|
||||
ParseGlobalsOnly,
|
||||
ParseAllOptions
|
||||
@@ -382,7 +386,7 @@ public class NBCLIOptions {
|
||||
selected = path;
|
||||
break;
|
||||
} else {
|
||||
System.err.println("ERROR: possible state dir path is not a directory: '" + path.toString() + "'");
|
||||
System.err.println("ERROR: possible state dir path is not a directory: '" + path + "'");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -397,7 +401,7 @@ public class NBCLIOptions {
|
||||
PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwxrwx---"))
|
||||
);
|
||||
} catch (IOException e) {
|
||||
throw new BasicError("Could not create state directory at '" + selected.toString() + "': " + e.getMessage());
|
||||
throw new BasicError("Could not create state directory at '" + selected + "': " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user