use dg.dump_hex instead of describe_message to avoid segmentation fault

This commit is contained in:
Redmond Urbino 2010-08-07 03:49:09 +00:00
parent 6b837e55fd
commit 93a6c90dd9
1 changed files with 3 additions and 3 deletions

View File

@ -1130,7 +1130,7 @@ bool CConnectionRepository::check_datagram_ai(PyObject *PycallBackFunction)
endTime = ClockObject::get_global_clock()->get_real_time();
if ( _time_warning < (endTime - startTime)) {
nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<< (endTime-startTime) << "secs to process\n";
describe_message(nout, "RECV", _dg);
_dg.dump_hex(nout,2);
}
}
return false;
@ -1146,7 +1146,7 @@ bool CConnectionRepository::check_datagram_ai(PyObject *PycallBackFunction)
endTime = ClockObject::get_global_clock()->get_real_time();
if ( _time_warning < (endTime - startTime)) {
nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<< (endTime-startTime) << "secs to process\n";
describe_message(nout, "RECV", _dg);
_dg.dump_hex(nout,2);
}
}
return true;
@ -1157,7 +1157,7 @@ bool CConnectionRepository::check_datagram_ai(PyObject *PycallBackFunction)
endTime = ClockObject::get_global_clock()->get_real_time();
if ( _time_warning < (endTime - startTime)) {
nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<< (endTime-startTime) << "secs to process\n";
describe_message(nout, "RECV", _dg);
_dg.dump_hex(nout,2);
}
}