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
@@ -430,7 +430,8 @@ void Connection::handle_MONITOR()
}
if(!M.good() || !mon) {
log_crit_printf(io, "Server %s sends invalid MONITOR. Disconnecting...\n", peerName.c_str());
log_crit_printf(io, "%s:%d Server %s sends invalid MONITOR. Disconnecting...\n",
M.file(), M.line(), peerName.c_str());
bev.reset();
return;
}