diff options
author | Alan Conway <aconway@apache.org> | 2014-08-19 22:34:15 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2014-08-19 22:34:15 +0000 |
commit | 269580b80a3242f7fb6e7dbfff9859e43bbad8fd (patch) | |
tree | 9f8fa5faa01ff9234cb5570e087bf1664b10c876 /qpid/cpp/src/qpid/ha/Backup.h | |
parent | 451bda18227dccc91a08fe1ade559d0f91be932d (diff) | |
download | qpid-python-269580b80a3242f7fb6e7dbfff9859e43bbad8fd.tar.gz |
QPID-6020: HA logging improvements - log prefix with status and ID.
Include broker status and ID in (almost) all logging messages.
Makes it much easier to track broker state and interactions.
Sundry other logging improvements including:
- Demote noisy messages to trace - connections from rgmanager status checks, searching for primary.
- Rationalise start-up messages.
- Improved queue state detail replicating subscription and queue guard initialization.
- Fail to prepare TX is error.
- Collect all primary TX errors into one.
- Fix status of catchup brokers in primary membership for logging.
- Add process name/PID info to client connection messages.
- Various minor message tweaks.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1619003 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/ha/Backup.h')
-rw-r--r-- | qpid/cpp/src/qpid/ha/Backup.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qpid/cpp/src/qpid/ha/Backup.h b/qpid/cpp/src/qpid/ha/Backup.h index 88194158ce..47c44aa59c 100644 --- a/qpid/cpp/src/qpid/ha/Backup.h +++ b/qpid/cpp/src/qpid/ha/Backup.h @@ -22,6 +22,7 @@ * */ +#include "LogPrefix.h" #include "Role.h" #include "Settings.h" #include "qpid/Url.h" @@ -53,8 +54,6 @@ class Backup : public Role Backup(HaBroker&, const Settings&); ~Backup(); - std::string getLogPrefix() const { return logPrefix; } - void setBrokerUrl(const Url&); Role* promote(); @@ -65,7 +64,7 @@ class Backup : public Role void stop(sys::Mutex::ScopedLock&); Role* recover(sys::Mutex::ScopedLock&); - std::string logPrefix; + const LogPrefix& logPrefix; Membership& membership; sys::Mutex lock; |