Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add connection property to limit server error detail in exception exceptions #1579

Merged
merged 3 commits into from Nov 14, 2019

Commits on Nov 13, 2019

  1. feat: Add connection property to limit server error detail in excepti…

    …on messages
    
    Adds a boolean connection property, LOG_SERVER_MESSAGE_DETAIL ("logServerMessage") that
    controls whether the full error detail, as reported back by the server, is included in
    the exception messages. This property can be used to limit potentially sensitive content
    in server messages from bubbling up in exception messages and stack traces.
    
    If set to "false" then only the top level error will be included in the exception message.
    If set to "true" then all details in the server error will be included.
    
    Default value for the new property is "true" to reflect the prior behavior of logging the
    full error detail.
    
    Closes pgjdbc#1577
    sehrope committed Nov 13, 2019
    Copy the full SHA
    de5de3e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    3db5636 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2019

  1. Copy the full SHA
    c5b7fdd View commit details
    Browse the repository at this point in the history