more Troubleshoot "no more data in UDP packet"

This commit is contained in:
Michael Davidsaver
2019-03-06 09:30:14 -08:00
parent ecee708d3a
commit dfeb9fd5a5
4 changed files with 20 additions and 19 deletions

View File

@@ -158,10 +158,9 @@ void ServerResponseHandler::handleResponse(osiSockAddr* responseFrom,
LOG(logLevelError,
"Invalid (or unsupported) command: %x.", (0xFF&command));
if(pvAccessIsLoggable(logLevelError)) {
std::cerr<<"Invalid PVA header "<<hex<<(int)(0xFF&command)
<<", its payload buffer\n"
<<HexDump(*payloadBuffer, payloadSize);
if(IS_LOGGABLE(logLevelError)) {
std::cerr<<"Invalid (or unsupported) command: "<<std::hex<<(int)(0xFF&command)<<"\n"
<<HexDump(*payloadBuffer, payloadSize).limit(256u);
}
return;
}