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 PumpEnactResult executingNowError() {
|
||||
PumpEnactResult result = new PumpEnactResult();
|
||||
result.success = false;
|
||||
result.enacted = false;
|
||||
result.comment = MainApp.sResources.getString(R.string.executingrightnow);
|
||||
return result;
|
||||
return new PumpEnactResult().success(false).enacted(false).comment(MainApp.sResources.getString(R.string.executingrightnow));
|
||||
}
|
||||
|
||||
public boolean isRunning(Command.CommandType type) {
|
||||
|
|
|
@ -97,7 +97,7 @@ public class QueueThread extends Thread {
|
|||
if (queue.performing() == null) {
|
||||
// Pickup 1st command and set performing variable
|
||||
if (queue.size() > 0) {
|
||||
log.debug("State: performing");
|
||||
log.debug("State: performing " + queue.performing().status());
|
||||
queue.pickup();
|
||||
MainApp.bus().post(new EventQueueChanged());
|
||||
queue.performing().execute();
|
||||
|
|
Loading…
Reference in a new issue