Lowered the level of some of the SDN-IP log messages (per route)
from DEBUG to TRACE. Change-Id: I97eefe7550952c3c38976fcf4aa1f12274190868
Showing
1 changed file
with
13 additions
and
13 deletions
... | @@ -133,7 +133,7 @@ public class IntentSynchronizer { | ... | @@ -133,7 +133,7 @@ public class IntentSynchronizer { |
133 | continue; | 133 | continue; |
134 | } | 134 | } |
135 | 135 | ||
136 | - log.debug("SDN-IP Intent Synchronizer withdrawing intent: {}", | 136 | + log.trace("SDN-IP Intent Synchronizer withdrawing intent: {}", |
137 | intent); | 137 | intent); |
138 | builder.addWithdrawOperation(intent.id()); | 138 | builder.addWithdrawOperation(intent.id()); |
139 | } | 139 | } |
... | @@ -227,7 +227,7 @@ public class IntentSynchronizer { | ... | @@ -227,7 +227,7 @@ public class IntentSynchronizer { |
227 | builder.addSubmitOperation(intent); | 227 | builder.addSubmitOperation(intent); |
228 | } | 228 | } |
229 | IntentOperations intentOperations = builder.build(); | 229 | IntentOperations intentOperations = builder.build(); |
230 | - log.debug("SDN-IP Submitting intents: {}", | 230 | + log.trace("SDN-IP Submitting intents: {}", |
231 | intentOperations.operations()); | 231 | intentOperations.operations()); |
232 | intentService.execute(intentOperations); | 232 | intentService.execute(intentOperations); |
233 | } | 233 | } |
... | @@ -263,12 +263,12 @@ public class IntentSynchronizer { | ... | @@ -263,12 +263,12 @@ public class IntentSynchronizer { |
263 | for (Ip4Prefix prefix : withdrawPrefixes) { | 263 | for (Ip4Prefix prefix : withdrawPrefixes) { |
264 | intent = routeIntents.remove(prefix); | 264 | intent = routeIntents.remove(prefix); |
265 | if (intent == null) { | 265 | if (intent == null) { |
266 | - log.debug("SDN-IP No intent in routeIntents to delete " + | 266 | + log.trace("SDN-IP No intent in routeIntents to delete " + |
267 | "for prefix: {}", prefix); | 267 | "for prefix: {}", prefix); |
268 | continue; | 268 | continue; |
269 | } | 269 | } |
270 | if (isElectedLeader && isActivatedLeader) { | 270 | if (isElectedLeader && isActivatedLeader) { |
271 | - log.debug("SDN-IP Withdrawing intent: {}", intent); | 271 | + log.trace("SDN-IP Withdrawing intent: {}", intent); |
272 | withdrawBuilder.addWithdrawOperation(intent.id()); | 272 | withdrawBuilder.addWithdrawOperation(intent.id()); |
273 | } | 273 | } |
274 | } | 274 | } |
... | @@ -290,11 +290,11 @@ public class IntentSynchronizer { | ... | @@ -290,11 +290,11 @@ public class IntentSynchronizer { |
290 | // TODO: Short-term solution to explicitly withdraw | 290 | // TODO: Short-term solution to explicitly withdraw |
291 | // instead of using "replace" operation. | 291 | // instead of using "replace" operation. |
292 | // | 292 | // |
293 | - log.debug("SDN-IP Withdrawing old intent: {}", | 293 | + log.trace("SDN-IP Withdrawing old intent: {}", |
294 | oldIntent); | 294 | oldIntent); |
295 | withdrawBuilder.addWithdrawOperation(oldIntent.id()); | 295 | withdrawBuilder.addWithdrawOperation(oldIntent.id()); |
296 | } | 296 | } |
297 | - log.debug("SDN-IP Submitting intent: {}", intent); | 297 | + log.trace("SDN-IP Submitting intent: {}", intent); |
298 | submitBuilder.addSubmitOperation(intent); | 298 | submitBuilder.addSubmitOperation(intent); |
299 | } | 299 | } |
300 | } | 300 | } |
... | @@ -353,7 +353,7 @@ public class IntentSynchronizer { | ... | @@ -353,7 +353,7 @@ public class IntentSynchronizer { |
353 | } | 353 | } |
354 | if (log.isDebugEnabled()) { | 354 | if (log.isDebugEnabled()) { |
355 | for (Intent intent: fetchedIntents.values()) { | 355 | for (Intent intent: fetchedIntents.values()) { |
356 | - log.debug("SDN-IP Intent Synchronizer: fetched intent: {}", | 356 | + log.trace("SDN-IP Intent Synchronizer: fetched intent: {}", |
357 | intent); | 357 | intent); |
358 | } | 358 | } |
359 | } | 359 | } |
... | @@ -384,7 +384,7 @@ public class IntentSynchronizer { | ... | @@ -384,7 +384,7 @@ public class IntentSynchronizer { |
384 | // TODO: For now we support only IPv4 | 384 | // TODO: For now we support only IPv4 |
385 | continue; | 385 | continue; |
386 | } | 386 | } |
387 | - log.debug("SDN-IP Intent Synchronizer: updating " + | 387 | + log.trace("SDN-IP Intent Synchronizer: updating " + |
388 | "in-memory Route Intent for prefix {}", | 388 | "in-memory Route Intent for prefix {}", |
389 | ip4Prefix); | 389 | ip4Prefix); |
390 | routeIntents.put(ip4Prefix, mp2pIntent); | 390 | routeIntents.put(ip4Prefix, mp2pIntent); |
... | @@ -396,7 +396,7 @@ public class IntentSynchronizer { | ... | @@ -396,7 +396,7 @@ public class IntentSynchronizer { |
396 | } | 396 | } |
397 | if (intent instanceof PointToPointIntent) { | 397 | if (intent instanceof PointToPointIntent) { |
398 | PointToPointIntent p2pIntent = (PointToPointIntent) intent; | 398 | PointToPointIntent p2pIntent = (PointToPointIntent) intent; |
399 | - log.debug("SDN-IP Intent Synchronizer: updating " + | 399 | + log.trace("SDN-IP Intent Synchronizer: updating " + |
400 | "in-memory Peer Intent {}", p2pIntent); | 400 | "in-memory Peer Intent {}", p2pIntent); |
401 | peerIntents.put(new IntentKey(intent), p2pIntent); | 401 | peerIntents.put(new IntentKey(intent), p2pIntent); |
402 | continue; | 402 | continue; |
... | @@ -407,11 +407,11 @@ public class IntentSynchronizer { | ... | @@ -407,11 +407,11 @@ public class IntentSynchronizer { |
407 | IntentOperations.Builder builder = IntentOperations.builder(appId); | 407 | IntentOperations.Builder builder = IntentOperations.builder(appId); |
408 | for (Intent intent : deleteIntents) { | 408 | for (Intent intent : deleteIntents) { |
409 | builder.addWithdrawOperation(intent.id()); | 409 | builder.addWithdrawOperation(intent.id()); |
410 | - log.debug("SDN-IP Intent Synchronizer: withdrawing intent: {}", | 410 | + log.trace("SDN-IP Intent Synchronizer: withdrawing intent: {}", |
411 | intent); | 411 | intent); |
412 | } | 412 | } |
413 | if (!isElectedLeader) { | 413 | if (!isElectedLeader) { |
414 | - log.debug("SDN-IP Intent Synchronizer: cannot withdraw intents: " + | 414 | + log.trace("SDN-IP Intent Synchronizer: cannot withdraw intents: " + |
415 | "not elected leader anymore"); | 415 | "not elected leader anymore"); |
416 | isActivatedLeader = false; | 416 | isActivatedLeader = false; |
417 | return; | 417 | return; |
... | @@ -423,11 +423,11 @@ public class IntentSynchronizer { | ... | @@ -423,11 +423,11 @@ public class IntentSynchronizer { |
423 | builder = IntentOperations.builder(appId); | 423 | builder = IntentOperations.builder(appId); |
424 | for (Intent intent : addIntents) { | 424 | for (Intent intent : addIntents) { |
425 | builder.addSubmitOperation(intent); | 425 | builder.addSubmitOperation(intent); |
426 | - log.debug("SDN-IP Intent Synchronizer: submitting intent: {}", | 426 | + log.trace("SDN-IP Intent Synchronizer: submitting intent: {}", |
427 | intent); | 427 | intent); |
428 | } | 428 | } |
429 | if (!isElectedLeader) { | 429 | if (!isElectedLeader) { |
430 | - log.debug("SDN-IP Intent Synchronizer: cannot submit intents: " + | 430 | + log.trace("SDN-IP Intent Synchronizer: cannot submit intents: " + |
431 | "not elected leader anymore"); | 431 | "not elected leader anymore"); |
432 | isActivatedLeader = false; | 432 | isActivatedLeader = false; |
433 | return; | 433 | return; | ... | ... |
-
Please register or login to post a comment