shard: log more info when req invalid

This commit is contained in:
Miroslav Crnic
2024-09-19 07:17:38 +00:00
parent 75dfd723c0
commit c5454b9361

View File

@@ -510,6 +510,7 @@ private:
if (likely(err == EggsError::NO_ERROR)) {
return; // we're done here, move along
} else {
LOG_ERROR(_env, "error preparing log entry for request: %s from: %s err: %s", req, entry.clientAddr, err);
(checkPointed ? checkpointedRespContainer.body.resp : respContainer.body).setError() = err;
_logEntries.pop_back(); // back out the log entry
}