diff options
| author | Alan Conway <aconway@apache.org> | 2012-07-30 19:20:41 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-07-30 19:20:41 +0000 |
| commit | 98de2d2e38df02ea226f44f8d4f538b188a669a4 (patch) | |
| tree | 8d886a72d3e697c5d3f117c6c8a2eb07f9d62299 /cpp/src/qpid/ha/Primary.cpp | |
| parent | 13c78156fa630c024b5a23582588dc60be8403ce (diff) | |
| download | qpid-python-98de2d2e38df02ea226f44f8d4f538b188a669a4.tar.gz | |
QPID-4175: HA code rationalize logging
Clean up and rationalize log messages and levels.
notice: Major broker-level events: connecting, failing-over, primary active, backup ready.
info: Major queue level events: subscriptions ready, replicators created etc.
debug: Detailed replication events: accept/reject conections, details of queue replication protocol.
trace: dumping raw QMF messages
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1367231 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/ha/Primary.cpp')
| -rw-r--r-- | cpp/src/qpid/ha/Primary.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/ha/Primary.cpp b/cpp/src/qpid/ha/Primary.cpp index fd738c6b54..e7aa4858be 100644 --- a/cpp/src/qpid/ha/Primary.cpp +++ b/cpp/src/qpid/ha/Primary.cpp @@ -81,13 +81,13 @@ Primary::Primary(HaBroker& hb, const BrokerInfo::Set& expect) : assert(instance == 0); instance = this; // Let queue replicators find us. if (expect.empty()) { - QPID_LOG(debug, logPrefix << "Promoted, no expected backups"); + QPID_LOG(notice, logPrefix << "Promoted to primary. No expected backups."); } else { // NOTE: RemoteBackups must be created before we set the ConfigurationObserver // or ConnectionObserver so that there is no client activity while // the QueueGuards are created. - QPID_LOG(debug, logPrefix << "Promoted, expected backups: " << expect); + QPID_LOG(notice, logPrefix << "Promoted to primary. Expected backups: " << expect); for (BrokerInfo::Set::const_iterator i = expect.begin(); i != expect.end(); ++i) { boost::shared_ptr<RemoteBackup> backup( new RemoteBackup(*i, haBroker.getReplicationTest(), false)); @@ -136,7 +136,7 @@ void Primary::checkReady(BackupMap::iterator i, Mutex::ScopedLock& l) { checkReady(l); } else - QPID_LOG(info, logPrefix << "Backup is ready: " << info); + QPID_LOG(info, logPrefix << "New backup is ready: " << info); } } |
