better logging
This commit is contained in:
parent
45d0128097
commit
5d217cf1b3
2 changed files with 2 additions and 6 deletions
|
@ -77,11 +77,7 @@ public class CommandQueue {
|
||||||
private QueueThread thread = null;
|
private QueueThread thread = null;
|
||||||
|
|
||||||
private PumpEnactResult executingNowError() {
|
private PumpEnactResult executingNowError() {
|
||||||
PumpEnactResult result = new PumpEnactResult();
|
return new PumpEnactResult().success(false).enacted(false).comment(MainApp.sResources.getString(R.string.executingrightnow));
|
||||||
result.success = false;
|
|
||||||
result.enacted = false;
|
|
||||||
result.comment = MainApp.sResources.getString(R.string.executingrightnow);
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isRunning(Command.CommandType type) {
|
public boolean isRunning(Command.CommandType type) {
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class QueueThread extends Thread {
|
||||||
if (queue.performing() == null) {
|
if (queue.performing() == null) {
|
||||||
// Pickup 1st command and set performing variable
|
// Pickup 1st command and set performing variable
|
||||||
if (queue.size() > 0) {
|
if (queue.size() > 0) {
|
||||||
log.debug("State: performing");
|
log.debug("State: performing " + queue.performing().status());
|
||||||
queue.pickup();
|
queue.pickup();
|
||||||
MainApp.bus().post(new EventQueueChanged());
|
MainApp.bus().post(new EventQueueChanged());
|
||||||
queue.performing().execute();
|
queue.performing().execute();
|
||||||
|
|
Loading…
Reference in a new issue