Skip to content

Commit 0c7f734

Browse files
authored
Fix clean RepeateHandler AggregatedobjectIds log message. (#249)
1 parent 7347f01 commit 0c7f734

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/java/com/ericsson/ei/services/SubscriptionService.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ public boolean modifySubscription(Subscription subscription, String subscription
121121
if (result != null) {
122122
String subscriptionIdQuery = String.format(SUBSCRIPTION_ID, subscriptionName);
123123
if (!cleanSubscriptionRepeatFlagHandlerDb(subscriptionIdQuery)) {
124-
LOG.error("Failed to clean subscription \"" + subscriptionName
125-
+ "\" matched AggregatedObjIds from RepeatFlagHandler database");
124+
LOG.info("Subscription \"" + subscriptionName
125+
+ "\" matched aggregated objects id from repeat flag handler database could not be cleaned during the update of the subscription,\n"
126+
+ "probably due to subscription has never matched any aggregated objects and "
127+
+ "no matched aggregated objects id has been stored in database for the specific subscription.");
126128
}
127129
}
128130

@@ -142,8 +144,10 @@ public boolean deleteSubscription(String subscriptionName) throws AccessExceptio
142144
if (deleteResult) {
143145
String subscriptionIdQuery = String.format(SUBSCRIPTION_ID, subscriptionName);
144146
if (!cleanSubscriptionRepeatFlagHandlerDb(subscriptionIdQuery)) {
145-
LOG.error("Failed to clean subscription \"" + subscriptionName
146-
+ "\" matched AggregatedObjIds from RepeatFlagHandler database");
147+
LOG.info("Subscription \"" + subscriptionName
148+
+ "\" matched aggregated objects id from repeat flag handler database could not be cleaned during the removal of subscription,\n"
149+
+ "probably due to subscription has never matched any aggregated objects and "
150+
+ "no matched aggregated objects id has been stored in database for the specific subscription.");
147151
}
148152
} else if (doSubscriptionExist(subscriptionName)) {
149153
String message = "Failed to delete subscription \"" + subscriptionName

0 commit comments

Comments
 (0)