remote file:line from decode errors

This commit is contained in:
Michael Davidsaver
2021-01-12 11:19:33 -08:00
parent 76764cf978
commit e9ce80880d
11 changed files with 39 additions and 25 deletions
+2 -1
View File
@@ -353,7 +353,8 @@ void Connection::handle_GPR(pva_app_msg_t cmd)
}
if(!M.good() || !gpr) {
log_crit_printf(io, "Server %s sends invalid op%02x. Disconnecting...\n", peerName.c_str(), cmd);
log_crit_printf(io, "%s:%d Server %s sends invalid op%02x. Disconnecting...\n",
M.file(), M.line(), peerName.c_str(), cmd);
bev.reset();
return;
}