Add more details to the log, when an error happens in GetPage request.

This commit is contained in:
Heikki Linnakangas
2021-09-24 21:44:22 +03:00
parent 41dfc117e7
commit b71e3a40e2

View File

@@ -293,7 +293,9 @@ impl PageServerHandler {
};
let response = response.unwrap_or_else(|e| {
error!("error reading relation or page version: {}", e);
// print the all details to the log with {:#}, but for the client the
// error message is enough
error!("error reading relation or page version: {:#}", e);
PagestreamBeMessage::Error(PagestreamErrorResponse {
message: e.to_string(),
})