Merge pull request #8148 from roidayan/xio-add_prefix_to_xio_logs

xio: add prefix to xio msgr logs
This commit is contained in:
Casey Bodley 2016-03-23 12:21:52 -04:00
commit 1bccc8a5ab

View File

@ -353,6 +353,12 @@ void XioInit::package_init(CephContext *cct) {
}
/* XioMessenger */
#undef dout_prefix
#define dout_prefix _prefix(_dout, this)
static ostream& _prefix(std::ostream *_dout, XioMessenger *msgr) {
return *_dout << "-- " << msgr->get_myaddr() << " ";
}
XioMessenger::XioMessenger(CephContext *cct, entity_name_t name,
string mname, uint64_t _nonce, uint64_t features,
DispatchStrategy *ds)