Added verbose logs
This commit is contained in:
parent
2a0440bac8
commit
28c8eef876
@ -69,7 +69,7 @@ public class Utils {
|
||||
|
||||
public static final int OUTPUTLEVEL_NODEBUG = 0;
|
||||
public static final int OUTPUTLEVEL_DEBUG_MIN = 1;
|
||||
public static final int OUTPUTLEVEL_DEBUG_MAX = 4;
|
||||
public static final int OUTPUTLEVEL_DEBUG_VERBOSE = 4;
|
||||
public static boolean debugThirdScreen;
|
||||
public static boolean headlessOverride = false;
|
||||
private static String OS = System.getProperty("os.name").toLowerCase();
|
||||
|
@ -90,11 +90,11 @@ public class MathParser {
|
||||
Function lastElement;
|
||||
|
||||
if (StaticVars.debugOn) {
|
||||
Utils.out.print(Utils.OUTPUTLEVEL_DEBUG_MAX, "\tStatus: ");
|
||||
Utils.out.print(Utils.OUTPUTLEVEL_DEBUG_VERBOSE, "\tStatus: ");
|
||||
for (Function f : functionsList) {
|
||||
Utils.out.print(Utils.OUTPUTLEVEL_DEBUG_MAX, f.toString());
|
||||
Utils.out.print(Utils.OUTPUTLEVEL_DEBUG_VERBOSE, f.toString());
|
||||
}
|
||||
Utils.out.println(Utils.OUTPUTLEVEL_DEBUG_MAX);
|
||||
Utils.out.println(Utils.OUTPUTLEVEL_DEBUG_VERBOSE);
|
||||
}
|
||||
|
||||
for (MathParserStep step : steps) {
|
||||
@ -121,11 +121,11 @@ public class MathParser {
|
||||
} while (lastLoopDidSomething);
|
||||
|
||||
if (StaticVars.debugOn) {
|
||||
Utils.out.print(Utils.OUTPUTLEVEL_DEBUG_MAX, "\tStatus: ");
|
||||
Utils.out.print(Utils.OUTPUTLEVEL_DEBUG_VERBOSE, "\tStatus: ");
|
||||
for (Function f : functionsList) {
|
||||
Utils.out.print(Utils.OUTPUTLEVEL_DEBUG_MAX, f.toString());
|
||||
Utils.out.print(Utils.OUTPUTLEVEL_DEBUG_VERBOSE, f.toString());
|
||||
}
|
||||
Utils.out.println(Utils.OUTPUTLEVEL_DEBUG_MAX);
|
||||
Utils.out.println(Utils.OUTPUTLEVEL_DEBUG_VERBOSE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,10 @@ public class MathSolver {
|
||||
}
|
||||
stepBefore = stepState;
|
||||
ObjectArrayList<Function> stepResult = solveStep(lastFnc);
|
||||
Utils.out.println(Utils.OUTPUTLEVEL_DEBUG_VERBOSE, "Step state: "+stepStates[stepState]+", Consecutive null steps: " + consecutiveNullSteps + ", currentStepStateN: " + currentStepStateN + ", result: ");
|
||||
for (Function result : stepResult) {
|
||||
Utils.out.println(Utils.OUTPUTLEVEL_DEBUG_VERBOSE, result.toString());
|
||||
}
|
||||
if (stepResult == null) {
|
||||
currFnc = lastFnc;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user