mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
more appropriate logging levels
This commit is contained in:
parent
87ad8e6210
commit
908ab7c1a3
@ -65,7 +65,8 @@ public class AtomicInput implements Input, ActivityDefObserver, ProgressCapable
|
||||
long next = current + stride;
|
||||
if (next > max.get()) {
|
||||
if (recycleValue.get()>=recycleMax.get()) {
|
||||
logger.debug("Exhausted input for " + activityDef.getAlias() + " at " + current + ", recycle count " + recycleValue.get());
|
||||
logger.trace("Exhausted input for " + activityDef.getAlias() + " at " + current + ", recycle " +
|
||||
"count " + recycleValue.get());
|
||||
return null;
|
||||
} else {
|
||||
if (cycleValue.compareAndSet(current,min.get()+stride)) {
|
||||
|
@ -256,7 +256,7 @@ public class CoreMotor<D> implements ActivityDefObserver, Motor<D>, Stoppable {
|
||||
}
|
||||
|
||||
if (cycleSegment == null) {
|
||||
logger.debug("input exhausted (input " + input + ") via null segment, stopping motor thread " + slotId);
|
||||
logger.trace("input exhausted (input " + input + ") via null segment, stopping motor thread " + slotId);
|
||||
slotStateTracker.enterState(Finished);
|
||||
continue;
|
||||
}
|
||||
@ -368,7 +368,7 @@ public class CoreMotor<D> implements ActivityDefObserver, Motor<D>, Stoppable {
|
||||
}
|
||||
|
||||
if (cycleSegment == null) {
|
||||
logger.debug("input exhausted (input " + input + ") via null segment, stopping motor thread " + slotId);
|
||||
logger.trace("input exhausted (input " + input + ") via null segment, stopping motor thread " + slotId);
|
||||
slotStateTracker.enterState(Finished);
|
||||
continue;
|
||||
}
|
||||
|
@ -130,12 +130,12 @@ public class Scenario implements Callable<ScenarioResult> {
|
||||
public void run() {
|
||||
init();
|
||||
|
||||
logger.info("Running control script for " + getName() + ".");
|
||||
logger.debug("Running control script for " + getName() + ".");
|
||||
for (String script : scripts) {
|
||||
try {
|
||||
Object result = null;
|
||||
if (scriptEngine instanceof Compilable) {
|
||||
logger.info("Using direct script compilation");
|
||||
logger.debug("Using direct script compilation");
|
||||
Compilable compilableEngine = (Compilable) scriptEngine;
|
||||
CompiledScript compiled = compilableEngine.compile(script);
|
||||
result = compiled.eval();
|
||||
@ -143,7 +143,7 @@ public class Scenario implements Callable<ScenarioResult> {
|
||||
result = scriptEngine.eval(script);
|
||||
}
|
||||
if (result!=null) {
|
||||
logger.debug("result: type(" + result.getClass().getCanonicalName() + "): value:" + result.toString());
|
||||
logger.debug("scenario result: type(" + result.getClass().getCanonicalName() + "): value:" + result.toString());
|
||||
}
|
||||
System.err.flush();
|
||||
System.out.flush();
|
||||
@ -171,9 +171,9 @@ public class Scenario implements Callable<ScenarioResult> {
|
||||
}
|
||||
}
|
||||
int awaitCompletionTime = 86400*365*1000;
|
||||
logger.info("Awaiting completion of scenario for " + awaitCompletionTime + " millis.");
|
||||
logger.debug("Awaiting completion of scenario for " + awaitCompletionTime + " millis.");
|
||||
scenarioController.awaitCompletion(awaitCompletionTime);
|
||||
logger.trace("scenario complete");
|
||||
logger.debug("scenario completed without errors");
|
||||
}
|
||||
|
||||
public ScenarioResult call() {
|
||||
|
Loading…
Reference in New Issue
Block a user