Vapor: 4.75.2 Release

Release date:
May 15, 2023
Previous version:
4.75.1 (released April 11, 2023)
Magnitude:
1 Diff Delta
Contributors:
3 total committers
Data confidence:
Commits:

Top Contributors in 4.75.2

VaporBot
0xTim
gwynne

Directory Browser for 4.75.2

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

This patch was authored and released by @gwynne.

Some kinds of errors provide additional "debug" information, which can give much more detail than the "plain" description of the error. In many cases this debug info can contain sensitive data, such as specifics about a database schema, so Vapor only uses the plain description when sending errors to clients (and in release environments, all details are suppressed).

To date, the plain description has also been used for logging errors. This can make it very difficult for developers to figure out what's going wrong with their code if the error in question only provides meaningful information in its debug data - for example, the PostgreSQL database driver implementation does this rather than relying on a higher-level layer like Vapor to obfuscate potentially sensitive information. This PR changes the logging of errors to include the debug information (and only the logging; the responses sent to clients are unchanged).