Minor intent cleanup
Change-Id: I72dae58879f5b45566d5f120f6fd85807460bb78
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentCleanup.java b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentCleanup.java
index e00e841..44a2d65 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentCleanup.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentCleanup.java
@@ -181,7 +181,8 @@
service.withdraw(intentData.intent());
break;
default:
- //TODO this is an error, might want to log it
+ log.warn("Trying to resubmit corrupt intent {} in state {} with request {}",
+ intentData.key(), intentData.state(), intentData.request());
break;
}
}
@@ -195,7 +196,8 @@
service.withdraw(intentData.intent());
break;
default:
- //TODO this is an error (or could be purge), might want to log it
+ log.warn("Trying to resubmit pending intent {} in state {} with request {}",
+ intentData.key(), intentData.state(), intentData.request());
break;
}
}
@@ -225,7 +227,6 @@
}
for (IntentData intentData : store.getPendingData(true, periodMs)) {
- //TODO should we do age check here, or in the store?
resubmitPendingRequest(intentData);
stuckCount++;
}