Skip to content

Commit

Permalink
pim: More logging for register/unregister logic.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Sep 7, 2012
1 parent 22fa0bc commit 548a590
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions xorp/pim/xrl_pim_node.cc
Expand Up @@ -421,6 +421,9 @@ XrlPimNode::send_register_unregister_interest()
entry = dynamic_cast<RegisterUnregisterInterest*>(xrl_task_base);
XLOG_ASSERT(entry != NULL);

string eop(entry->operation_name());
string et(entry->target_name());

if (entry->is_register()) {
// Register interest
success = _xrl_finder_client.send_register_class_event_interest(
Expand All @@ -437,13 +440,15 @@ XrlPimNode::send_register_unregister_interest()
//
// If an error, then try again
//
XLOG_ERROR("Failed to %s register interest in %s with the Finder. "
"Will try again.",
entry->operation_name(),
entry->target_name().c_str());
XLOG_ERROR("Failed to %s interest in %s with the Finder. Will try again.",
eop.c_str(), et.c_str());
retry_xrl_task();
return;
}
else {
XLOG_INFO("Successfully sent %s interest in %s with the Finder.",
eop.c_str(), et.c_str());
}
}

void
Expand Down

0 comments on commit 548a590

Please sign in to comment.