m->decode_payload();
}
catch (buffer::error *e) {
- dout(0) << "failed to decode message of type " << type << ": " << *e << dendl;
+ dout(0) << "failed to decode message of type " << type
+ << " v" << header.version
+ << ": " << *e << dendl;
delete e;
if (g_conf.ms_die_on_bad_msg)
assert(0);
bufferlist& front, bufferlist& middle, bufferlist& data);
inline ostream& operator<<(ostream& out, Message& m) {
m.print(out);
+ if (m.get_header().version)
+ out << " v" << m.get_header().version;
return out;
}