diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2019-05-01 14:03:11 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2019-05-01 14:03:11 +0200 |
commit | ed9cc7537297fe03f1792001216b8c6eda76653b (patch) | |
tree | f7e5edefbccda11a42a18b2627ff026c7195b298 | |
parent | ddd9845488c8120ab6f41a1a7ac754c9a91af2a8 (diff) | |
download | ATCD-ed9cc7537297fe03f1792001216b8c6eda76653b.tar.gz |
Within validate_ping move logging statement outside of the if so that we can all status fields in the log
* TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp:
-rw-r--r-- | TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp index 0751d522a6f..b0136bee5bd 100644 --- a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.cpp @@ -346,18 +346,19 @@ LiveEntry::has_pid (int pid) const bool LiveEntry::validate_ping (bool &want_reping, ACE_Time_Value& next) { + if (ImR_Locator_i::debug () > 4) + { + ORBSVCS_DEBUG ((LM_DEBUG, + ACE_TEXT ("(%P|%t) LiveEntry::validate_ping, status ") + ACE_TEXT ("<%C> listeners <%d> server <%C> pid <%d>\n"), + status_name (this->liveliness_), this->listeners_.size (), + this->server_.c_str(), this->pid_)); + } + if (this->liveliness_ == LS_PING_AWAY || this->liveliness_ == LS_DEAD || this->listeners_.is_empty ()) { - if (ImR_Locator_i::debug () > 4) - { - ORBSVCS_DEBUG ((LM_DEBUG, - ACE_TEXT ("(%P|%t) LiveEntry::validate_ping, status ") - ACE_TEXT ("<%C> listeners <%d> server <%C> pid <%d>\n"), - status_name (this->liveliness_), this->listeners_.size (), - this->server_.c_str(), this->pid_)); - } return false; } ACE_Time_Value const now (ACE_OS::gettimeofday()); |