mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-19 06:00:38 +00:00
We currently lose the actual reason the first walredo attempt failed. Together with implicit retry making it difficult to eyeball what is happening. PR version keeps the logging the same error message twice, which is what we've been doing all along. However correlating the retrying case and the finally returned error is difficult, because the actual error message was left out before this PR. Lastly, log the final error we present to postgres *in the same span*, not outside it. Additionally, suppress the stacktrace as the comment suggested.