no control over snap-server exceptions (and logging of HTTP params) #135

pheaver opened this Issue May 16, 2012 · 0 comments

1 participant


You can set an exception handler in the Config, but it only applies to some exceptions. Snap.Internal.Http.Server.httpSession catches and logs exceptions, and it includes the HTTP params in the request. The params contain sensitive information that we must not log, so our only options are:

  • Turn off all logging with setErrorLog ConfigNoLog
  • Define an error log action that attempts to parse the message and find sensitive params (yikes!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment